Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 29b3dad

Browse files
fix test
1 parent e565019 commit 29b3dad

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

packages/node-sdk/test/sdk.test.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { CHAIN_NAMESPACES, CustomChainConfig } from "@web3auth/base";
12
import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider";
23
import { SolanaPrivateKeyProvider } from "@web3auth/solana-provider";
34
import { expect } from "chai";
@@ -20,17 +21,19 @@ describe("web3auth backend", function () {
2021
const provider = new EthereumPrivateKeyProvider({
2122
config: {
2223
chainConfig: {
23-
displayName: "ETH Mainnet",
24-
blockExplorer: "https://etherscan.io",
24+
chainNamespace: CHAIN_NAMESPACES.EIP155,
25+
displayName: "ETH Sepolia",
26+
blockExplorerUrl: "https://sepolia.etherscan.io",
2527
ticker: "ETH",
2628
tickerName: "Ethereum",
27-
chainId: "0x5", // goerli
28-
rpcTarget: "https://rpc.ankr.com/eth_goerli",
29+
chainId: "0xaa36a7", // sepolia
30+
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
2931
},
3032
},
3133
});
3234
web3auth.init({ provider });
3335
});
36+
3437
it("should return a provider with private key", async function () {
3538
const provider = await web3auth.connect({
3639
verifier: TORUS_TEST_VERIFIER,
@@ -63,9 +66,10 @@ describe("web3auth backend", function () {
6366
clientId: "BCtbnOamqh0cJFEUYA0NB5YkvBECZ3HLZsKfvSRBvew2EiiKW3UxpyQASSR0artjQkiUOCHeZ_ZeygXpYpxZjOs",
6467
web3AuthNetwork: "testnet",
6568
});
66-
const chainConfig = {
69+
const chainConfig: CustomChainConfig = {
70+
chainNamespace: CHAIN_NAMESPACES.SOLANA,
6771
displayName: "Solana Devnet",
68-
blockExplorer: "https://explorer.solana.com/",
72+
blockExplorerUrl: "https://explorer.solana.com/",
6973
ticker: "sol",
7074
tickerName: "Solana",
7175
chainId: "0x3",

0 commit comments

Comments
 (0)