Skip to content

Commit

Permalink
bump connector 0.3.46 & rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Oct 25, 2024
1 parent 3cf27db commit 791f26d
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 53 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"create-events": "./bin/generateEvents.cjs"
},
"dependencies": {
"@cartridge/connector": "^0.3.33",
"@cartridge/connector": "^0.3.46",
"@chakra-ui/anatomy": "^2.1.1",
"@chakra-ui/react": "^2.8.1",
"@dojoengine/core": "0.7.4",
Expand Down
85 changes: 44 additions & 41 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 8 additions & 9 deletions web/src/components/wallet/StarknetProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export function StarknetProvider({ children, selectedChain }: { children: ReactN

import manifestRyoSepolia from "../../manifests/ryosepolia/manifest.json";

const cartridgeConnector = new CartridgeConnector(
[
const cartridgeConnector = new CartridgeConnector({
policies: [
{
target: manifestRyoSepolia.contracts.find((c) => c.name === "rollyourown::_mocks::paper_mock::paper_mock")!
.address,
Expand Down Expand Up @@ -128,11 +128,10 @@ const cartridgeConnector = new CartridgeConnector(
method: "claim",
},
],
{
url: "https://x.cartridge.gg",
theme: "dope-wars",
paymaster: {
caller: shortString.encodeShortString("ANY_CALLER"),
},
url: "https://x.cartridge.gg",
rpc: "https://api.cartridge.gg/x/starknet/sepolia",
theme: "dope-wars",
paymaster: {
caller: shortString.encodeShortString("ANY_CALLER"),
},
) as unknown as InjectedConnector;
}) as unknown as InjectedConnector;
2 changes: 1 addition & 1 deletion web/src/dojo/hooks/useSystems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const useSystems = (): SystemsInterface => {

try {

tx = await dojoProvider.execute(account!, params, { maxFee: 1000000000000000n, });
tx = await dojoProvider.execute(account!, params );

// toast({
// message: `tx sent ${tx.transaction_hash.substring(0, 4)}...${tx.transaction_hash.slice(-4)}`,
Expand Down
2 changes: 1 addition & 1 deletion web/src/dojo/setup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const katanaSlot421: DojoChainConfig = {
const snSepolia: DojoChainConfig = {
name: "SEPOLIA",
chainConfig: sepolia,
rpcUrl: "https://api.cartridge.gg/rpc/starknet-sepolia/v0_7",
rpcUrl: "https://api.cartridge.gg/x/starknet/sepolia",
toriiUrl: "https://api.cartridge.gg/x/ryosepolia/torii/graphql",
toriiWsUrl: "wss://api.cartridge.gg/x/ryosepolia/torii/graphql/ws",
masterAddress: undefined,
Expand Down

0 comments on commit 791f26d

Please sign in to comment.