Skip to content

Commit

Permalink
Merge pull request #331 from Sifchain/getPNLAndNonce
Browse files Browse the repository at this point in the history
fix: incorporate pending transactions into nonce check
  • Loading branch information
snobbee authored Feb 5, 2025
2 parents f067ada + c07e5c1 commit 1abbb67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-0x/src/actions/swap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export const tokenSwap = async (runtime: IAgentRuntime, quantity: number, fromCu

const nonce = await client.getTransactionCount({
address: (client.account as { address: `0x${string}` }).address,
blockTag: "pending"
});
elizaLogger.info("nonce ", nonce)
const txHash = await client.sendTransaction({
Expand Down

0 comments on commit 1abbb67

Please sign in to comment.