Skip to content

Commit

Permalink
Update Test Demoing the rootPublicKey use
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Nov 15, 2024
1 parent 2b5df5d commit 9be8f09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ import { decodeTxData } from "../src/decode";

dotenv.config();

const TESTNET_ROOT_KEY =
"secp256k1:4NfTiv3UsGahebgTaHyD9vF8KYKMBnfd6kh94mK6xv8fGBiJB8TBtFMP5WWXz6B89Ac1fbpzPwAvoyQebemHFwx3";
const MAINNET_ROOT_KEY =
"secp256k1:3tFRbMqmoa6AAALMrEFAYCEoHcqKxeW38YptwowBVBtXK1vo36HDbUWuR6EZmoK4JcH6HDkNMGGqP1ouV7VZUWya";

describe("Near Safe Requests", () => {
let adapter: NearSafe;
beforeAll(async () => {
const networkId = "testnet";
// Initialize the NearSafe adapter once before all tests
adapter = await NearSafe.create({
mpc: {
accountId: "neareth-dev.testnet",
mpcContractId: "v1.signer-prod.testnet",
rootPublicKey:
networkId === "testnet" ? TESTNET_ROOT_KEY : MAINNET_ROOT_KEY,
},
pimlicoKey: process.env.PIMLICO_KEY!,
safeSaltNonce: DEFAULT_SAFE_SALT_NONCE,
Expand Down

0 comments on commit 9be8f09

Please sign in to comment.