Skip to content

Commit

Permalink
fix: SDK initialisation should take privateKey passed as initialisati…
Browse files Browse the repository at this point in the history
…on argument
  • Loading branch information
kanthgithub committed Sep 30, 2024
1 parent 6302892 commit 3e6f53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ModularSdk {

if (!privateKey) throw new Exception('privateKey is required');

this.account = getViemAccount(process.env.WALLET_PRIVATE_KEY as string);
this.account = getViemAccount(privateKey);
this.chainId = chainId;
this.index = index ?? 0;

Expand Down

0 comments on commit 3e6f53e

Please sign in to comment.