From ed736120ceb6c3828bb73acae3b426b61dded512 Mon Sep 17 00:00:00 2001 From: Fernando Gonzalez Goncharov Date: Fri, 6 Dec 2024 14:05:58 +0200 Subject: [PATCH] feat(example-dapp): proper `idOSGrantee` initialisation --- examples/idos-example-dapp/api/EVM.ts | 2 +- examples/idos-example-dapp/api/NEAR.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/idos-example-dapp/api/EVM.ts b/examples/idos-example-dapp/api/EVM.ts index 166ae81ac..14b6fc593 100644 --- a/examples/idos-example-dapp/api/EVM.ts +++ b/examples/idos-example-dapp/api/EVM.ts @@ -19,7 +19,7 @@ const evmGranteeSigner = new ethers.Wallet( const idosGrantee = await idOSGrantee.init({ chainType: "EVM", granteeSigner: evmGranteeSigner, - encryptionSecret: ENCRYPTION_SECRET_KEY, + encryptionPrivateKey: ENCRYPTION_SECRET_KEY, }); const encryptionPublicKey = idosGrantee.encryptionPublicKey; diff --git a/examples/idos-example-dapp/api/NEAR.ts b/examples/idos-example-dapp/api/NEAR.ts index e0cbbfee9..4e0ef185d 100644 --- a/examples/idos-example-dapp/api/NEAR.ts +++ b/examples/idos-example-dapp/api/NEAR.ts @@ -15,7 +15,7 @@ const nearGranteeSigner = KeyPair.fromString(NEAR_GRANTEE_PRIVATE_KEY); const idosGrantee = await idOSGrantee.init({ chainType: "NEAR", granteeSigner: nearGranteeSigner, - encryptionSecret: ENCRYPTION_SECRET_KEY, + encryptionPrivateKey: ENCRYPTION_SECRET_KEY, }); const encryptionPublicKey = idosGrantee.encryptionPublicKey;