Skip to content

Commit

Permalink
fix: get nonce pending
Browse files Browse the repository at this point in the history
  • Loading branch information
ohdcthang committed Aug 15, 2024
1 parent a2bc16f commit cb0ba7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/giftCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GiftCore{

async getNonceAccount(address: string): Promise<number>{
try {
const nonce = await this.provider.getTransactionCount(address, 'latest')
const nonce = await this.provider.getTransactionCount(address, 'pending')

return nonce
} catch (error) {
Expand Down

0 comments on commit cb0ba7d

Please sign in to comment.