mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Fix crash
This commit is contained in:
parent
0d8f19200d
commit
a6cb9caa28
1 changed files with 14 additions and 10 deletions
|
|
@ -522,16 +522,20 @@ func (args *TransactionArgs) ToTransaction() *types.Transaction {
|
||||||
Data: args.data(),
|
Data: args.data(),
|
||||||
AccessList: al,
|
AccessList: al,
|
||||||
// RIP-7560 parameters
|
// RIP-7560 parameters
|
||||||
Sender: args.Sender,
|
Sender: args.Sender,
|
||||||
Signature: *args.Signature,
|
Signature: *args.Signature,
|
||||||
Paymaster: args.Paymaster,
|
Paymaster: args.Paymaster,
|
||||||
PaymasterData: *args.PaymasterData,
|
PaymasterData: *args.PaymasterData,
|
||||||
Deployer: args.Deployer,
|
Deployer: args.Deployer,
|
||||||
DeployerData: *args.DeployerData,
|
DeployerData: *args.DeployerData,
|
||||||
BuilderFee: (*big.Int)(args.BuilderFee),
|
BuilderFee: (*big.Int)(args.BuilderFee),
|
||||||
ValidationGasLimit: uint64(*args.ValidationGas),
|
ValidationGasLimit: uint64(*args.ValidationGas),
|
||||||
PaymasterValidationGasLimit: uint64(*args.PaymasterGas),
|
}
|
||||||
PostOpGas: uint64(*args.PostOpGas),
|
if args.PaymasterGas != nil {
|
||||||
|
aatx.PaymasterValidationGasLimit = uint64(*args.PaymasterGas)
|
||||||
|
}
|
||||||
|
if args.PostOpGas != nil {
|
||||||
|
aatx.PostOpGas = uint64(*args.PostOpGas)
|
||||||
}
|
}
|
||||||
data = &aatx
|
data = &aatx
|
||||||
hash := types.NewTx(data).Hash()
|
hash := types.NewTx(data).Hash()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue