diff --git a/packages/client/src/mud/createSystemCalls.ts b/packages/client/src/mud/createSystemCalls.ts index 1677d97f..2635e526 100644 --- a/packages/client/src/mud/createSystemCalls.ts +++ b/packages/client/src/mud/createSystemCalls.ts @@ -84,7 +84,7 @@ export function createSystemCalls( const selectUserNft = async (tokenId: any, address: any, nonce: any) => { try { - const tx = await worldContract.write.selectUserNft([tokenId], {nonce}); + const tx = await worldContract.write.selectUserNft([tokenId]); await waitForTransaction(tx); return getComponentValue(Player, encodeEntity({ addr: "address" }, { addr: address})); } catch (error) { @@ -95,7 +95,7 @@ export function createSystemCalls( const selectLootNFT = async (tokenId: any, address: any, nonce: any) => { try { - const tx = await worldContract.write.selectLootNFT([tokenId], {nonce}); + const tx = await worldContract.write.selectLootNFT([tokenId]); await waitForTransaction(tx); let LootList1Data = getComponentValue(LootList1, encodeEntity({ addr: "address" }, { addr: address})); // let LootList2Data = getComponentValue(LootList2, encodeEntity({ addr: "address" }, { addr: address})); diff --git a/packages/client/src/pages/game/index.tsx b/packages/client/src/pages/game/index.tsx index b342a0dd..da47edda 100644 --- a/packages/client/src/pages/game/index.tsx +++ b/packages/client/src/pages/game/index.tsx @@ -92,9 +92,9 @@ const Game = () => { player.username = player.name; LootList1Data.forEach((item) => { if (item.addr.toLocaleLowerCase() === address.toLocaleLowerCase()) { - let clothes = lootData.chest.replace(/"(.*?)"/, '').split(' of')[0].replace(/^\s+|\s+$/g,"") - let handheld = lootData.weapon.replace(/"(.*?)"/, '').split(' of')[0].replace(/^\s+|\s+$/g,"") - let head = lootData.head.replace(/"(.*?)"/, '').split(' of')[0].replace(/^\s+|\s+$/g,"") + let clothes = item.chest.replace(/"(.*?)"/, '').split(' of')[0].replace(/^\s+|\s+$/g,"") + let handheld = item.weapon.replace(/"(.*?)"/, '').split(' of')[0].replace(/^\s+|\s+$/g,"") + let head = item.head.replace(/"(.*?)"/, '').split(' of')[0].replace(/^\s+|\s+$/g,"") player.equip = { clothes, handheld, diff --git a/packages/contracts/worlds.json b/packages/contracts/worlds.json index 55750d72..1e4c5696 100644 --- a/packages/contracts/worlds.json +++ b/packages/contracts/worlds.json @@ -4,7 +4,7 @@ "blockNumber": 29045674 }, "31337": { - "address": "0xD5724171C2b7f0AA717a324626050BD05767e2C6" + "address": "0x4000F8820522AC96C4221b299876e3e53bCc8525" }, "421613": { "address": "0x2Bc1034975c3df48D6f3026802f372677844b85d",