From f1cae317f592857835c64be492b752a807606e05 Mon Sep 17 00:00:00 2001 From: Paulo Koch Date: Tue, 17 Dec 2024 12:36:13 +0000 Subject: [PATCH] Don't use authn --- packages/idos-sdk-server-dapp/src/idOS.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/idos-sdk-server-dapp/src/idOS.ts b/packages/idos-sdk-server-dapp/src/idOS.ts index 6ad0f8939..e14637eaf 100644 --- a/packages/idos-sdk-server-dapp/src/idOS.ts +++ b/packages/idos-sdk-server-dapp/src/idOS.ts @@ -10,7 +10,7 @@ export class idOS { static async init( chainType: "EVM" | "NEAR", - authnPrivateKey: string, + authPrivateKey: string, encryptionPrivateKey: string, nodeUrl: string, ) { @@ -18,7 +18,7 @@ export class idOS { switch (chainType) { case "EVM": { - const signer = new ethers.Wallet(authnPrivateKey, new JsonRpcProvider(nodeUrl)); + const signer = new ethers.Wallet(authPrivateKey, new JsonRpcProvider(nodeUrl)); grantee = await idOSGrantee.init({ chainType, granteeSigner: signer, @@ -27,7 +27,7 @@ export class idOS { return new idOS(grantee); } case "NEAR": { - const signer = KeyPair.fromString(authnPrivateKey); + const signer = KeyPair.fromString(authPrivateKey); grantee = await idOSGrantee.init({ chainType, granteeSigner: signer,