mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update gethclient.go
This commit is contained in:
parent
51be7fc912
commit
5a51243f44
1 changed files with 1 additions and 8 deletions
|
|
@ -243,14 +243,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
|
||||||
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
|
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
|
||||||
}
|
}
|
||||||
if msg.AccessList != nil {
|
if msg.AccessList != nil {
|
||||||
accessListArg := make([]map[string]interface{}, len(msg.AccessList))
|
arg["accessList"] = msg.AccessList
|
||||||
for i, access := range msg.AccessList {
|
|
||||||
accessListArg[i] = map[string]interface{}{
|
|
||||||
"address": access.Address,
|
|
||||||
"storageKeys": access.StorageKeys,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
arg["accessList"] = accessListArg
|
|
||||||
}
|
}
|
||||||
return arg
|
return arg
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue