From 3c1b4ab6765469f55403e51215f544517d10c317 Mon Sep 17 00:00:00 2001 From: 0xExp-po Date: Thu, 12 Dec 2024 09:16:17 +0900 Subject: [PATCH] chore: divide proof env data into two parts --- dapp/.env.example | 3 ++- dapp/src/env.d.ts | 3 ++- dapp/src/pages/api/w3up-delegation.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dapp/.env.example b/dapp/.env.example index d5e296d..98a089e 100644 --- a/dapp/.env.example +++ b/dapp/.env.example @@ -12,4 +12,5 @@ PUBLIC_DEFAULT_FEE="100" PUBLIC_DEFAULT_TIMEOUT=30 STORACHA_SING_PRIVATE_KEY="" -STORACHA_PROOF="" \ No newline at end of file +STORACHA_PROOF_1="" +STORACHA_PROOF_2="" \ No newline at end of file diff --git a/dapp/src/env.d.ts b/dapp/src/env.d.ts index 7d03d87..82e4382 100644 --- a/dapp/src/env.d.ts +++ b/dapp/src/env.d.ts @@ -12,7 +12,8 @@ interface ImportMetaEnv { readonly PUBLIC_DEFAULT_FEE: string; readonly PUBLIC_DEFAULT_TIMEOUT: number; readonly STORACHA_SING_PRIVATE_KEY: string; - readonly STORACHA_PROOF: string; + readonly STORACHA_PROOF_1: string; + readonly STORACHA_PROOF_2: string; } interface ImportMeta { diff --git a/dapp/src/pages/api/w3up-delegation.js b/dapp/src/pages/api/w3up-delegation.js index 41f85ad..39386d7 100644 --- a/dapp/src/pages/api/w3up-delegation.js +++ b/dapp/src/pages/api/w3up-delegation.js @@ -86,7 +86,7 @@ const getProjectMaintainers = async (projectName) => { async function generateDelegation(did) { const key = import.meta.env.STORACHA_SING_PRIVATE_KEY; - const storachaProof = import.meta.env.STORACHA_PROOF; + const storachaProof = import.meta.env.STORACHA_PROOF_1 + import.meta.env.STORACHA_PROOF_2; const principal = Signer.parse(key); const store = new StoreMemory();