Update gethclient.go

This commit is contained in:
Felix Lange 2024-01-19 15:35:14 +01:00 committed by GitHub
parent 51be7fc912
commit 5a51243f44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,14 +243,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
}
if msg.AccessList != nil {
accessListArg := make([]map[string]interface{}, len(msg.AccessList))
for i, access := range msg.AccessList {
accessListArg[i] = map[string]interface{}{
"address": access.Address,
"storageKeys": access.StorageKeys,
}
}
arg["accessList"] = accessListArg
arg["accessList"] = msg.AccessList
}
return arg
}