mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
rpcademon: eth_createAccessList: fix in retrieve nonce (#9064)
This commit is contained in:
parent
be4036e132
commit
88a8aa6799
@ -489,7 +489,14 @@ func (api *APIImpl) CreateAccessList(ctx context.Context, args ethapi2.CallArgs,
|
||||
}
|
||||
if reply.Found {
|
||||
nonce = reply.Nonce + 1
|
||||
} else {
|
||||
a, err := stateReader.ReadAccountData(*args.From)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
nonce = a.Nonce + 1
|
||||
}
|
||||
|
||||
args.Nonce = (*hexutil.Uint64)(&nonce)
|
||||
}
|
||||
to = crypto.CreateAddress(*args.From, uint64(*args.Nonce))
|
||||
|
Loading…
Reference in New Issue
Block a user