enable blob call

This commit is contained in:
maskpp 2024-02-14 22:29:11 +08:00
parent 55a46c3b10
commit 5273e55f45
2 changed files with 10 additions and 0 deletions

View file

@ -665,6 +665,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
if msg.AccessList != nil {
arg["accessList"] = msg.AccessList
}
if msg.BlobGasFeeCap != nil {
arg["maxFeePerBlobGas"] = msg.BlobGasFeeCap
}
if msg.BlobHashes != nil {
arg["blobVersionedHashes"] = msg.BlobHashes
}
return arg
}

View file

@ -152,6 +152,10 @@ type CallMsg struct {
Data []byte // input data, usually an ABI-encoded contract method invocation
AccessList types.AccessList // EIP-2930 access list.
// For BlobTxType
BlobGasFeeCap *big.Int
BlobHashes []common.Hash
}
// A ContractCaller provides contract calls, essentially transactions that are executed by