Skip to content

Commit

Permalink
internal/ethapi: support both input and data for personal_sendTransac…
Browse files Browse the repository at this point in the history
…tion (ethereum#23476)
  • Loading branch information
JukLee0ira committed Aug 12, 2024
1 parent 67ec164 commit f695ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ethapi/transaction_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ func (args *TransactionArgs) setDefaults(ctx context.Context, b Backend) error {
if args.Gas == nil {
// These fields are immutable during the estimation, safe to
// pass the pointer directly.
data := args.data()
callArgs := TransactionArgs{
From: args.From,
To: args.To,
GasPrice: args.GasPrice,
Value: args.Value,
Data: args.Data,
Data: (*hexutil.Bytes)(&data),
AccessList: args.AccessList,
}
pendingBlockNr := rpc.BlockNumberOrHashWithNumber(rpc.PendingBlockNumber)
Expand Down

0 comments on commit f695ba7

Please sign in to comment.