Skip to content

Commit

Permalink
Update gethclient.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl authored Jan 19, 2024
1 parent 51be7fc commit 5a51243
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ethclient/gethclient/gethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5a51243

Please sign in to comment.