Skip to content

Commit

Permalink
fix: typeof nonce (#10885)
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Sep 27, 2023
1 parent 89f9d49 commit 161b813
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -715,13 +715,14 @@ export class ConnectionReadonlyAPI
}

async getTransactionNonce(address: string, initial?: ConnectionOptions) {
return this.Request.request<number>(
const nonce = await this.Request.request<number | string>(
{
method: EthereumMethodType.ETH_GET_TRANSACTION_COUNT,
params: [address, 'latest'],
},
initial,
)
return toNumber(nonce)
}

signMessage(
Expand Down

0 comments on commit 161b813

Please sign in to comment.