mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 16:59:26 +00:00
fix: change nonce to hexutil
This commit is contained in:
parent
67f087a0fa
commit
f66b10f1fd
2 changed files with 3 additions and 3 deletions
|
|
@ -289,7 +289,7 @@ func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx *
|
|||
}
|
||||
|
||||
// TransactionHashBySenderAndNonce returns the transaction hash for the given sender and nonce.
|
||||
func (ec *Client) TransactionHashBySenderAndNonce(ctx context.Context, sender common.Address, nonce uint64) (*common.Hash, error) {
|
||||
func (ec *Client) TransactionHashBySenderAndNonce(ctx context.Context, sender common.Address, nonce hexutil.Uint64) (*common.Hash, error) {
|
||||
var hash *common.Hash
|
||||
err := ec.c.CallContext(ctx, &hash, "eth_getTransactionBySenderAndNonce", sender, nonce)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -1450,8 +1450,8 @@ func (api *TransactionAPI) GetTransactionByHash(ctx context.Context, hash common
|
|||
}
|
||||
|
||||
// GetTransactionBySenderAndNonce returns the hash of a transaction for the given sender and nonce.
|
||||
func (s *TransactionAPI) GetTransactionBySenderAndNonce(ctx context.Context, sender common.Address, nonce uint64) (*common.Hash, error) {
|
||||
hash, err := s.b.GetTransactionBySenderAndNonce(ctx, sender, nonce)
|
||||
func (s *TransactionAPI) GetTransactionBySenderAndNonce(ctx context.Context, sender common.Address, nonce hexutil.Uint64) (*common.Hash, error) {
|
||||
hash, err := s.b.GetTransactionBySenderAndNonce(ctx, sender, uint64(nonce))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue