Skip to content

Commit 0223c1d

Browse files
committed
fix: attempt fixes for failing test
signature fails, probably a session validation issue
1 parent 1129b94 commit 0223c1d

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

examples/nft-quest/nuxt.config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { defineChain } from "viem";
33
import { localhost } from "viem/chains";
44
import wasm from "vite-plugin-wasm";
55

6+
import contracts from "./public/contracts.json";
7+
68
// TODO: Deploy NFT Quest to ZKsync OS Testnet and update contract addresses
79
const zksyncOsTestnet = defineChain({
810
id: 8022833,
@@ -86,11 +88,11 @@ export default defineNuxtConfig({
8688
public: {
8789
chain: localhost,
8890
contracts: {
89-
nft: "0xF4E1ee85f0645b5871B03bc40d151C174F0e86f6",
90-
paymaster: "0x25B89fa6e157937f845ec0Fb41733B29bc20A4d3",
91+
nft: contracts.nftContract,
92+
paymaster: contracts.mockPaymaster,
9193
},
92-
bundlerUrl: "http://localhost:4337",
93-
entryPoint: "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
94+
bundlerUrl: contracts.bundlerUrl,
95+
entryPoint: contracts.entryPoint,
9496
baseUrl: "http://localhost:3006",
9597
authServerUrl: "http://localhost:3002/confirm",
9698
explorerUrl: "http://localhost:3010",

examples/nft-quest/stores/connector.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ export const useConnectorStore = defineStore("connector", () => {
1818
},
1919
authServerUrl: runtimeConfig.public.authServerUrl,
2020
session: {
21-
feeLimit: "2000000000000000", // 0.002 ETH - sufficient for NFT mints
21+
feeLimit: {
22+
limitType: "lifetime",
23+
limit: 2_000_000_000_000_000n, // 0.002 ETH - sufficient for NFT mints
24+
},
2225
contractCalls: [
2326
{
2427
address: runtimeConfig.public.contracts.nft as Address,
2528
abi: ZeekNftQuestAbi,
2629
functionName: "mint",
27-
valueLimit: "0", // No ETH transfers allowed
30+
valueLimit: {
31+
limitType: "lifetime",
32+
limit: 0n, // No ETH transfers allowed
33+
},
2834
},
2935
],
3036
},

packages/auth-server/stores/local-node.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"rpcUrl": "http://localhost:8545",
33
"chainId": 1337,
44
"deployer": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
5-
"eoaValidator": "0x92294dF15133c5b050eEB9d0fa415e2AD9CB9bC0",
6-
"sessionValidator": "0x7C56116fCD7acF4ed56765F246004D57359bD555",
7-
"webauthnValidator": "0x9Eca295fBD10eC78f43209a68197791772e3FeD9",
8-
"guardianExecutor": "0x42fc1eA2463bbb61C6C1C89D02a432162dF1Ca46",
9-
"accountImplementation": "0xd7D5f4A79c5042161324376F37Dd3Db7bd3E5C2F",
10-
"beacon": "0x545FEe85C38DC3369B21430FDFB086F51834BFa7",
11-
"factory": "0xE94510616EB7137F3586a0d2ef478c1913Ce70A0",
12-
"testPaymaster": "0x24CF582274bC09531d1e4B7370c2c0106414a57c",
13-
"mockPaymaster": "0x24CF582274bC09531d1e4B7370c2c0106414a57c",
5+
"eoaValidator": "0xa9D2feB10194d940A70391dFb186A649A3d52106",
6+
"sessionValidator": "0x3a8604019733D4Aab2AA7CBAdb9E06E1B072b1ed",
7+
"webauthnValidator": "0x4738752455Fd18DFf349C69f3E5b7576250D634a",
8+
"guardianExecutor": "0x1e085C7feA39368ca2A435fF96CAf1aE60176fB5",
9+
"accountImplementation": "0xd1d08C9cb5Df546975c9C8EAF8BA93775Ae2E2dF",
10+
"beacon": "0x85152fDf961A761399C1b77BC3213C6F361f4f52",
11+
"factory": "0xa669dd8684305c677f0d5Cd95D1a2E465164d984",
12+
"testPaymaster": "0x480ce59387443A9Bf266a4657f0E2AE1E6a7B771",
13+
"mockPaymaster": "0x480ce59387443A9Bf266a4657f0E2AE1E6a7B771",
1414
"entryPoint": "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108",
1515
"bundlerUrl": "http://localhost:4337"
1616
}

packages/sdk/src/connector/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const zksyncSsoConnector = (parameters: ZksyncSsoConnectorOptions) => {
107107

108108
return { accounts, chainId: walletChainId };
109109
} catch (error) {
110-
console.error(`Error connecting to ${this.name}`, error);
110+
console.error(`old Error connecting to ${this.name}`, error);
111111
if (
112112
/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(
113113
(error as Error).message,

0 commit comments

Comments
 (0)