Skip to content

Commit

Permalink
frontend: use JSON.parse to parse private key in test
Browse files Browse the repository at this point in the history
  • Loading branch information
scnale committed Apr 1, 2024
1 parent 429529b commit da6fd4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/claim_sdk/testWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ export function loadFunderWallets(): Record<string, NodeWallet> {
if (process.env.FUNDER_KEYPAIR) {
keypair = Keypair.fromSecretKey(
Uint8Array.from(
process.env.FUNDER_KEYPAIR.replace('[', '')
.replace(']', '')
.split(',')
.map((x: string) => parseInt(x))
JSON.parse(process.env.FUNDER_KEYPAIR)
)
)
} else {
Expand Down

0 comments on commit da6fd4a

Please sign in to comment.