Fix GasEstimateGasLimit

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-08-06 21:28:47 +02:00
parent d6765847df
commit 562a3f482e
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -111,7 +111,8 @@ func (a *GasAPI) GasEstimateGasLimit(ctx context.Context, msgIn *types.Message,
msg := *msgIn
msg.GasLimit = build.BlockGasLimit
msg.GasPrice = types.NewInt(1)
msg.GasFeeCap = types.NewInt(build.MinimumBaseFee + 1)
msg.GasPremium = types.NewInt(1)
currTs := a.Chain.GetHeaviestTipSet()
fromA, err := a.Stmgr.ResolveToKeyAddress(ctx, msgIn.From, currTs)