From bf79f0209f8b930fc0042573191ceed385d379ab Mon Sep 17 00:00:00 2001 From: notV4l Date: Mon, 8 Jul 2024 13:12:24 +0200 Subject: [PATCH] fixed maxFee --- web/package.json | 2 +- web/pnpm-lock.yaml | 24 ++++++++++++------------ web/src/dojo/hooks/useSystems.ts | 3 ++- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/web/package.json b/web/package.json index a136e3ca..8e089999 100644 --- a/web/package.json +++ b/web/package.json @@ -18,7 +18,7 @@ "create-events": "./bin/generateEvents.cjs" }, "dependencies": { - "@cartridge/connector": "^0.3.30", + "@cartridge/connector": "^0.3.33", "@chakra-ui/anatomy": "^2.1.1", "@chakra-ui/react": "^2.8.1", "@dojoengine/core": "0.7.4", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index d93c935d..2b772172 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@cartridge/connector': - specifier: ^0.3.30 - version: 0.3.30(encoding@0.1.13)(get-starknet-core@3.2.0(starknet@6.2.0(encoding@0.1.13)))(react@18.2.0) + specifier: ^0.3.33 + version: 0.3.33(encoding@0.1.13)(get-starknet-core@3.2.0(starknet@6.2.0(encoding@0.1.13)))(react@18.2.0) '@chakra-ui/anatomy': specifier: ^2.1.1 version: 2.2.2 @@ -813,11 +813,11 @@ packages: resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} engines: {node: '>=6.9.0'} - '@cartridge/connector@0.3.30': - resolution: {integrity: sha512-N7IKaB+wJWtchkcsmSbfDupSuqp1F21EPc0jFmYUNt/qimVbFhLId2x/bMiTOxVhO6roBtyYbo7E0XLeWcKlkA==} + '@cartridge/connector@0.3.33': + resolution: {integrity: sha512-xsDd4KuDpbldDzcKUd1f++1QJ0T+3c7KZ4ES58COveDwR1MiGl9dbVIy7+YrA9fRQwu2ANI/iRgV6INSu/XZFg==} - '@cartridge/controller@0.3.30': - resolution: {integrity: sha512-TIKaUROLny3M9I2pXLBjUI1WzgBHvAhMsgYcTBOHzDSn/f2pyGL3RuiEJT6X3fg5LHDH0hook2CYhvDEmqxzqQ==} + '@cartridge/controller@0.3.33': + resolution: {integrity: sha512-41Rtwojt/Zumoi09GH2Tjcim6fPKwxMHFIarfdiSi6UlO3do3DkZIOOnusxEsRcf5IpHLblJZL8xTYvxZE6Smg==} '@cartridge/penpal@6.2.3': resolution: {integrity: sha512-K8h9VqBfFPXcAFQNnvgBnejF/dp7249pS4jXu3NhNYR6JqMQxtcrDqfnPmJvbF4ECEBs+8Z2UiwlRQiKt5nNsg==} @@ -6429,9 +6429,9 @@ snapshots: '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 - '@cartridge/connector@0.3.30(encoding@0.1.13)(get-starknet-core@3.2.0(starknet@6.2.0(encoding@0.1.13)))(react@18.2.0)': + '@cartridge/connector@0.3.33(encoding@0.1.13)(get-starknet-core@3.2.0(starknet@6.2.0(encoding@0.1.13)))(react@18.2.0)': dependencies: - '@cartridge/controller': 0.3.30(encoding@0.1.13) + '@cartridge/controller': 0.3.33(encoding@0.1.13) '@starknet-react/core': 2.4.0(get-starknet-core@3.2.0(starknet@6.2.0(encoding@0.1.13)))(react@18.2.0)(starknet@6.9.0(encoding@0.1.13)) starknet: 6.9.0(encoding@0.1.13) typescript: 5.4.5 @@ -6440,7 +6440,7 @@ snapshots: - get-starknet-core - react - '@cartridge/controller@0.3.30(encoding@0.1.13)': + '@cartridge/controller@0.3.33(encoding@0.1.13)': dependencies: '@cartridge/penpal': 6.2.3 base64url: 3.0.1 @@ -9430,7 +9430,7 @@ snapshots: eslint: 8.36.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.36.0))(eslint@8.36.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.36.0))(eslint@8.36.0))(eslint@8.36.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.36.0) eslint-plugin-jsx-a11y: 6.8.0(eslint@8.36.0) eslint-plugin-react: 7.34.1(eslint@8.36.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.36.0) @@ -9454,7 +9454,7 @@ snapshots: enhanced-resolve: 5.16.0 eslint: 8.36.0 eslint-module-utils: 2.8.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.36.0))(eslint@8.36.0))(eslint@8.36.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.36.0))(eslint@8.36.0))(eslint@8.36.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.36.0) fast-glob: 3.3.2 get-tsconfig: 4.7.3 is-core-module: 2.13.1 @@ -9476,7 +9476,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.36.0))(eslint@8.36.0))(eslint@8.36.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0(eslint@8.36.0)(typescript@5.2.2))(eslint-import-resolver-typescript@3.6.1)(eslint@8.36.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 diff --git a/web/src/dojo/hooks/useSystems.ts b/web/src/dojo/hooks/useSystems.ts index 91845929..09930ce4 100644 --- a/web/src/dojo/hooks/useSystems.ts +++ b/web/src/dojo/hooks/useSystems.ts @@ -123,7 +123,8 @@ export const useSystems = (): SystemsInterface => { let tx, receipt; try { - tx = await dojoProvider.execute(account!, params); + + tx = await dojoProvider.execute(account!, params, { maxFee: 1000000000000000n, }); // toast({ // message: `tx sent ${tx.transaction_hash.substring(0, 4)}...${tx.transaction_hash.slice(-4)}`,