This commit is contained in:
Sina Mahmoodi 2024-01-16 19:14:20 +03:30
parent a93ab47a02
commit de6cea02b0

View file

@ -277,7 +277,7 @@ func (args *TransactionArgs) ToMessage(globalGasCap uint64, baseFee *big.Int) (*
gasPrice *big.Int gasPrice *big.Int
gasFeeCap *big.Int gasFeeCap *big.Int
gasTipCap *big.Int gasTipCap *big.Int
blobGasFeeCap *big.Int blobFeeCap *big.Int
) )
if baseFee == nil { if baseFee == nil {
// If there's no basefee, then it must be a non-1559 execution // If there's no basefee, then it must be a non-1559 execution
@ -310,9 +310,9 @@ func (args *TransactionArgs) ToMessage(globalGasCap uint64, baseFee *big.Int) (*
} }
} }
if args.BlobFeeCap != nil { if args.BlobFeeCap != nil {
blobGasFeeCap = args.BlobFeeCap.ToInt() blobFeeCap = args.BlobFeeCap.ToInt()
} else if args.BlobHashes != nil { } else if args.BlobHashes != nil {
blobGasFeeCap = new(big.Int) blobFeeCap = new(big.Int)
} }
value := new(big.Int) value := new(big.Int)
if args.Value != nil { if args.Value != nil {
@ -333,7 +333,7 @@ func (args *TransactionArgs) ToMessage(globalGasCap uint64, baseFee *big.Int) (*
GasTipCap: gasTipCap, GasTipCap: gasTipCap,
Data: data, Data: data,
AccessList: accessList, AccessList: accessList,
BlobGasFeeCap: blobGasFeeCap, BlobGasFeeCap: blobFeeCap,
BlobHashes: args.BlobHashes, BlobHashes: args.BlobHashes,
SkipAccountChecks: true, SkipAccountChecks: true,
} }