mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
internal/ethapi: support both input and data for personal_sendTransaction (#23476)
This commit is contained in:
parent
138ac7c967
commit
925c20061d
1 changed files with 2 additions and 1 deletions
|
|
@ -99,12 +99,13 @@ func (args *TransactionArgs) setDefaults(ctx context.Context, b Backend) error {
|
||||||
if args.Gas == nil {
|
if args.Gas == nil {
|
||||||
// These fields are immutable during the estimation, safe to
|
// These fields are immutable during the estimation, safe to
|
||||||
// pass the pointer directly.
|
// pass the pointer directly.
|
||||||
|
data := args.data()
|
||||||
callArgs := TransactionArgs{
|
callArgs := TransactionArgs{
|
||||||
From: args.From,
|
From: args.From,
|
||||||
To: args.To,
|
To: args.To,
|
||||||
GasPrice: args.GasPrice,
|
GasPrice: args.GasPrice,
|
||||||
Value: args.Value,
|
Value: args.Value,
|
||||||
Data: args.Data,
|
Data: (*hexutil.Bytes)(&data),
|
||||||
AccessList: args.AccessList,
|
AccessList: args.AccessList,
|
||||||
}
|
}
|
||||||
pendingBlockNr := rpc.BlockNumberOrHashWithNumber(rpc.PendingBlockNumber)
|
pendingBlockNr := rpc.BlockNumberOrHashWithNumber(rpc.PendingBlockNumber)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue