Skip to content

Commit

Permalink
chore: divide proof env data into two parts
Browse files Browse the repository at this point in the history
  • Loading branch information
0xExp-po committed Dec 12, 2024
1 parent 5e020db commit 3c1b4ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dapp/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ PUBLIC_DEFAULT_FEE="100"
PUBLIC_DEFAULT_TIMEOUT=30

STORACHA_SING_PRIVATE_KEY=""
STORACHA_PROOF=""
STORACHA_PROOF_1=""
STORACHA_PROOF_2=""
3 changes: 2 additions & 1 deletion dapp/src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dapp/src/pages/api/w3up-delegation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3c1b4ab

Please sign in to comment.