From 0a75209aac5509a76bdc410e9ef15ae2e1e8baf8 Mon Sep 17 00:00:00 2001 From: Lyova Potyomkin Date: Thu, 12 Dec 2024 18:35:07 +0200 Subject: [PATCH 1/3] fix: fix nft demo gas estimation --- examples/nft-quest/stores/connector.ts | 2 +- packages/auth-server/stores/client.ts | 4 ++-- packages/contracts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/nft-quest/stores/connector.ts b/examples/nft-quest/stores/connector.ts index 166a527..51323bc 100644 --- a/examples/nft-quest/stores/connector.ts +++ b/examples/nft-quest/stores/connector.ts @@ -22,7 +22,7 @@ export const useConnectorStore = defineStore("connector", () => { }, authServerUrl: runtimeConfig.public.authServerUrl, session: { - feeLimit: parseEther("0.04"), + feeLimit: 0n, contractCalls: [ callPolicy({ address: runtimeConfig.public.contracts.nft as Hash, diff --git a/packages/auth-server/stores/client.ts b/packages/auth-server/stores/client.ts index 11986bc..4f8e5d4 100644 --- a/packages/auth-server/stores/client.ts +++ b/packages/auth-server/stores/client.ts @@ -27,10 +27,10 @@ export const contractsByChain: Record = { accountPaymaster: "0xA46D949858335308859076FA605E773eB679e534", }, [zksyncInMemoryNode.id]: { - session: "0x62b019c03Db1f4d0C0b857fDabE4AbC9c60c2F70", + session: "0xD68963C76ab7FFACbF53B1750325254F40eDe765", passkey: "0x21b8397BeF5128662564b8491676baa6754AFD47", accountFactory: "0x26711A4A572a5BBdF967b6385636Bd968e6E883C", - accountPaymaster: "0xB29C8Dd9a5E5DFeFB49Adf16885175a07DE8e541", + accountPaymaster: "0x61C2F9736eC60C9175Cdc02DB81D730cf06eF0Ee", }, }; diff --git a/packages/contracts b/packages/contracts index e14bbf3..51a5a8b 160000 --- a/packages/contracts +++ b/packages/contracts @@ -1 +1 @@ -Subproject commit e14bbf36e36b07aaab0700adf3cb24e4d39c3552 +Subproject commit 51a5a8bfda2db6f387896d3225b2877c6fc8802e From c7ec580fffdd539165de1b665926146744ea07c8 Mon Sep 17 00:00:00 2001 From: Lyova Potyomkin Date: Thu, 12 Dec 2024 18:50:55 +0200 Subject: [PATCH 2/3] chore: fix lint --- examples/nft-quest/stores/connector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nft-quest/stores/connector.ts b/examples/nft-quest/stores/connector.ts index 51323bc..f07d8a4 100644 --- a/examples/nft-quest/stores/connector.ts +++ b/examples/nft-quest/stores/connector.ts @@ -1,6 +1,6 @@ import { connect, createConfig, type CreateConnectorFn, disconnect, getAccount, http, reconnect, watchAccount } from "@wagmi/core"; import { zksyncInMemoryNode, zksyncLocalNode, zksyncSepoliaTestnet } from "@wagmi/core/chains"; -import { type Address, type Hash, parseEther } from "viem"; +import { type Address, type Hash } from "viem"; import { callPolicy, zksyncSsoConnector } from "zksync-sso/connector"; import { ZeekNftQuestAbi } from "@/abi/ZeekNFTQuest"; From ebaf683c711acc5f888620e3ab590b2c58bea31f Mon Sep 17 00:00:00 2001 From: MexicanAce Date: Thu, 12 Dec 2024 17:04:15 +0000 Subject: [PATCH 3/3] fix: lint --- examples/nft-quest/stores/connector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nft-quest/stores/connector.ts b/examples/nft-quest/stores/connector.ts index f07d8a4..8651d8a 100644 --- a/examples/nft-quest/stores/connector.ts +++ b/examples/nft-quest/stores/connector.ts @@ -1,6 +1,6 @@ import { connect, createConfig, type CreateConnectorFn, disconnect, getAccount, http, reconnect, watchAccount } from "@wagmi/core"; import { zksyncInMemoryNode, zksyncLocalNode, zksyncSepoliaTestnet } from "@wagmi/core/chains"; -import { type Address, type Hash } from "viem"; +import type { Address, Hash } from "viem"; import { callPolicy, zksyncSsoConnector } from "zksync-sso/connector"; import { ZeekNftQuestAbi } from "@/abi/ZeekNFTQuest";