support ok chain call

This commit is contained in:
lizhengda 2024-08-09 19:22:33 +08:00
parent 83e70aa3d0
commit e79c96b2bb

View file

@ -651,6 +651,7 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
} }
if len(msg.Data) > 0 { if len(msg.Data) > 0 {
arg["input"] = hexutil.Bytes(msg.Data) arg["input"] = hexutil.Bytes(msg.Data)
arg["data"] = hexutil.Bytes(msg.Data)
} }
if msg.Value != nil { if msg.Value != nil {
arg["value"] = (*hexutil.Big)(msg.Value) arg["value"] = (*hexutil.Big)(msg.Value)