Skip to content

Commit

Permalink
Add maxFee.Int == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mentwang committed Sep 3, 2021
1 parent acff4fc commit 92bf862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func CapGasFee(mff dtypes.DefaultMaxFeeFunc, msg *types.Message, sendSepc *api.M
if sendSepc != nil {
maxFee = sendSepc.MaxFee
}
if maxFee.Equals(big.Zero()) {
if maxFee.Int == nil || maxFee.Equals(big.Zero()) {
mf, err := mff()
if err != nil {
log.Errorf("failed to get default max gas fee: %+v", err)
Expand Down

0 comments on commit 92bf862

Please sign in to comment.