good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 1e94b3a1 authored by George Hotz's avatar George Hotz Committed by GitHub
Browse files

fix eth_callBundle by allowing nil baseFee in tx serialize (#2674)

parent 77db993c
No related branches found
No related tags found
No related merge requests found
......@@ -469,9 +469,11 @@ func (tx DynamicFeeTransaction) AsMessage(s Signer, baseFee *big.Int) (Message,
accessList: tx.AccessList,
checkNonce: true,
}
overflow := msg.gasPrice.SetFromBig(baseFee)
if overflow {
return msg, fmt.Errorf("gasPrice higher than 2^256-1")
if baseFee != nil {
overflow := msg.gasPrice.SetFromBig(baseFee)
if overflow {
return msg, fmt.Errorf("gasPrice higher than 2^256-1")
}
}
msg.gasPrice.Add(&msg.gasPrice, tx.Tip)
if msg.gasPrice.Gt(tx.FeeCap) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment