mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
Merge eaf47b2da9 into 4f65227971
This commit is contained in:
commit
b75193805f
1 changed files with 10 additions and 0 deletions
|
|
@ -585,10 +585,15 @@ func (s *PublicBlockChainAPI) doCall(ctx context.Context, args CallArgs, blockNr
|
||||||
} else {
|
} else {
|
||||||
addr = args.From
|
addr = args.From
|
||||||
}
|
}
|
||||||
|
nonce, err := state.GetNonce(ctx, addr)
|
||||||
|
if err != nil {
|
||||||
|
return "0x", common.Big0, err
|
||||||
|
}
|
||||||
|
|
||||||
// Assemble the CALL invocation
|
// Assemble the CALL invocation
|
||||||
msg := callmsg{
|
msg := callmsg{
|
||||||
addr: addr,
|
addr: addr,
|
||||||
|
nonce: nonce,
|
||||||
to: args.To,
|
to: args.To,
|
||||||
gas: args.Gas.BigInt(),
|
gas: args.Gas.BigInt(),
|
||||||
gasPrice: args.GasPrice.BigInt(),
|
gasPrice: args.GasPrice.BigInt(),
|
||||||
|
|
@ -704,10 +709,15 @@ func (s *PublicBlockChainAPI) TraceCall(ctx context.Context, args CallArgs, bloc
|
||||||
} else {
|
} else {
|
||||||
addr = args.From
|
addr = args.From
|
||||||
}
|
}
|
||||||
|
nonce, err := state.GetNonce(ctx, addr)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
// Assemble the CALL invocation
|
// Assemble the CALL invocation
|
||||||
msg := callmsg{
|
msg := callmsg{
|
||||||
addr: addr,
|
addr: addr,
|
||||||
|
nonce: nonce,
|
||||||
to: args.To,
|
to: args.To,
|
||||||
gas: args.Gas.BigInt(),
|
gas: args.Gas.BigInt(),
|
||||||
gasPrice: args.GasPrice.BigInt(),
|
gasPrice: args.GasPrice.BigInt(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue