Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Oct 31, 2023
1 parent db79e6f commit 5274188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/mud/createSystemCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function createSystemCalls(

const selectUserNft = async (tokenId: any, address: any, nonce: any) => {
try {
const tx = await worldContract.write.selectUserNft([tokenId]);
const tx = await worldContract.write.selectUserNft([tokenId], {nonce});
await waitForTransaction(tx);
return getComponentValue(Player, encodeEntity({ addr: "address" }, { addr: address}));
} catch (error) {
Expand All @@ -95,7 +95,7 @@ export function createSystemCalls(

const selectLootNFT = async (tokenId: any, address: any, nonce: any) => {
try {
const tx = await worldContract.write.selectLootNFT([tokenId]);
const tx = await worldContract.write.selectLootNFT([tokenId], {nonce});
await waitForTransaction(tx);
let LootList1Data = getComponentValue(LootList1, encodeEntity({ addr: "address" }, { addr: address}));
// let LootList2Data = getComponentValue(LootList2, encodeEntity({ addr: "address" }, { addr: address}));
Expand Down

0 comments on commit 5274188

Please sign in to comment.