Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion l2geth/internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ type CallArgs struct {
GasPrice *hexutil.Big `json:"gasPrice"`
Value *hexutil.Big `json:"value"`
Data *hexutil.Bytes `json:"data"`
Input *hexutil.Bytes `json:"input"`
}

// account indicates the overriding fields of account during the execution of
Expand Down Expand Up @@ -887,7 +888,9 @@ func DoCall(ctx context.Context, b Backend, args CallArgs, blockNrOrHash rpc.Blo
var data []byte
if args.Data != nil {
data = []byte(*args.Data)
}
} else if args.Input != nil {
data = []byte(*args.Input)
}

// Currently, the blocknumber and timestamp actually refer to the L1BlockNumber and L1Timestamp
// attached to each transaction. We need to modify the blocknumber and timestamp to reflect this,
Expand Down