rpcademon: eth_createAccessList: fix in retrieve nonce (#9064)

This commit is contained in:
lupin012 2023-12-24 05:41:04 +01:00 committed by GitHub
parent be4036e132
commit 88a8aa6799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))