Skip to content

Commit 8c8ac2c

Browse files
committed
fix: deploy to atlas testnet
1 parent ad06bc7 commit 8c8ac2c

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

examples/nft-quest/nuxt.config.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineNuxtConfig } from "nuxt/config";
22
import type { Chain } from "viem/chains";
3+
import { defineChain } from "viem/utils";
34
import topLevelAwait from "vite-plugin-top-level-await";
45
import wasm from "vite-plugin-wasm";
56

@@ -13,6 +14,27 @@ const anvilChain: Chain = {
1314
},
1415
};
1516

17+
const zksyncOsTestnet = defineChain({
18+
id: 8022833,
19+
name: "ZKsyncOS Testnet",
20+
nativeCurrency: {
21+
name: "Ether",
22+
symbol: "ETH",
23+
decimals: 18,
24+
},
25+
rpcUrls: {
26+
default: {
27+
http: ["https://zksync-os-testnet-alpha.zksync.dev"],
28+
},
29+
},
30+
blockExplorers: {
31+
default: {
32+
name: "ZKsyncOS Testnet Explorer",
33+
url: "https://zksync-os-testnet-alpha.staging-scan-v2.zksync.dev",
34+
},
35+
},
36+
});
37+
1638
// https://nuxt.com/docs/api/configuration/nuxt-config
1739
export default defineNuxtConfig({
1840
modules: [
@@ -31,7 +53,7 @@ export default defineNuxtConfig({
3153
$production: {
3254
runtimeConfig: {
3355
public: {
34-
chain: anvilChain, // Update to use testnet when deploying
56+
chain: zksyncOsTestnet, // Update to use atlas testnet when deploying
3557
contracts: {
3658
nft: "0x4D533d3B20b50b57268f189F93bFaf8B39c36AB6",
3759
paymaster: "0x60eef092977DF2738480a6986e2aCD10236b1FA7",
@@ -40,7 +62,7 @@ export default defineNuxtConfig({
4062
bundlerUrl: "http://localhost:4337",
4163
baseUrl: "https://nft.zksync.dev",
4264
authServerUrl: "https://auth-test.zksync.dev/confirm",
43-
explorerUrl: "https://sepolia.explorer.zksync.io",
65+
explorerUrl: "https://zksync-os-testnet-alpha.staging-scan-v2.zksync.dev",
4466
},
4567
},
4668
},

0 commit comments

Comments
 (0)