Skip to content

Commit

Permalink
fix multiple api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Nov 10, 2024
1 parent f1085b2 commit 3fa7e32
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### [9.10.1](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.10.1) (2024-11-10)
- add transaction ids to prevent multiple API calls when using Web Wallet signing provider

### [9.10.0](https://github.com/xdevguild/nextjs-dapp-template/releases/tag/v9.10.0) (2024-11-09)
- update Next
- update useElven
Expand Down
5 changes: 4 additions & 1 deletion components/demo/simple-deploy-sc-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export const SimpleDeployScDemo = ({
}) => {
const { explorerAddress } = useConfig();
const { loggedIn } = useLoggingIn();
const { deploy, scAddress, txResult, pending } = useScDeploy({ cb });
const { deploy, scAddress, txResult, pending } = useScDeploy({
cb,
id: 'SimpleDeployScDemo',
});

const handleDeploy = () => {
deploy({ source: '/piggybank.wasm' });
Expand Down
2 changes: 1 addition & 1 deletion components/demo/simple-egld-tx-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const SimpleEGLDTxDemo = ({
}: {
cb: (params: TransactionCallbackParams) => void;
}) => {
const { pending, triggerTx } = useTransaction({ cb });
const { pending, triggerTx } = useTransaction({ cb, id: 'SimpleEGLDTxDemo' });
const { loggedIn } = useLoggingIn();
const { explorerAddress, chainType } = useConfig();

Expand Down
5 changes: 4 additions & 1 deletion components/demo/simple-esdt-tx-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export const SimpleESDTTxDemo = ({
}: {
cb: (params: TransactionCallbackParams) => void;
}) => {
const { transfer, pending } = useTokenTransfer({ cb });
const { transfer, pending } = useTokenTransfer({
cb,
id: 'SimpleESDTTxDemo',
});
const { loggedIn } = useLoggingIn();
const { explorerAddress, chainType } = useConfig();

Expand Down
5 changes: 4 additions & 1 deletion components/demo/simple-nft-mint-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export const SimpleNftMintDemo = ({
cb: (params: TransactionCallbackParams) => void;
}) => {
const { loggedIn } = useLoggingIn();
const { pending, triggerTx } = useTransaction({ cb });
const { pending, triggerTx } = useTransaction({
cb,
id: 'SimpleNftMintDemo',
});
const { activeGuardianAddress } = useAccount();
const { explorerAddress, chainType } = useConfig();

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs-dapp-template",
"version": "9.10.0",
"version": "9.10.1",
"author": "Julian Ćwirko <julian.io>",
"license": "MIT",
"homepage": "https://github.com/xdevguild/nextjs-dapp-template",
Expand Down Expand Up @@ -53,4 +53,4 @@
"overrides": {
"rxjs": "7.8.1"
}
}
}

0 comments on commit 3fa7e32

Please sign in to comment.