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

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Apr 16, 2024
1 parent e565019 commit 29b3dad
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/node-sdk/test/sdk.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CHAIN_NAMESPACES, CustomChainConfig } from "@web3auth/base";
import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider";
import { SolanaPrivateKeyProvider } from "@web3auth/solana-provider";
import { expect } from "chai";
Expand All @@ -20,17 +21,19 @@ describe("web3auth backend", function () {
const provider = new EthereumPrivateKeyProvider({
config: {
chainConfig: {
displayName: "ETH Mainnet",
blockExplorer: "https://etherscan.io",
chainNamespace: CHAIN_NAMESPACES.EIP155,
displayName: "ETH Sepolia",
blockExplorerUrl: "https://sepolia.etherscan.io",
ticker: "ETH",
tickerName: "Ethereum",
chainId: "0x5", // goerli
rpcTarget: "https://rpc.ankr.com/eth_goerli",
chainId: "0xaa36a7", // sepolia
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
},
},
});
web3auth.init({ provider });
});

it("should return a provider with private key", async function () {
const provider = await web3auth.connect({
verifier: TORUS_TEST_VERIFIER,
Expand Down Expand Up @@ -63,9 +66,10 @@ describe("web3auth backend", function () {
clientId: "BCtbnOamqh0cJFEUYA0NB5YkvBECZ3HLZsKfvSRBvew2EiiKW3UxpyQASSR0artjQkiUOCHeZ_ZeygXpYpxZjOs",
web3AuthNetwork: "testnet",
});
const chainConfig = {
const chainConfig: CustomChainConfig = {
chainNamespace: CHAIN_NAMESPACES.SOLANA,
displayName: "Solana Devnet",
blockExplorer: "https://explorer.solana.com/",
blockExplorerUrl: "https://explorer.solana.com/",
ticker: "sol",
tickerName: "Solana",
chainId: "0x3",
Expand Down

0 comments on commit 29b3dad

Please sign in to comment.