Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
use bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
lalexgap committed Oct 18, 2023
1 parent f428519 commit d0a108e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const deployFunc = async function (): Promise<void> {
)}) SCBridgeWallet deployed to: ${await bobWallet.getAddress()}`,
);

const initialFunding = parseInt(process.env.VITE_SCW_DEPOSIT ?? "", 10);
const initialFunding = BigInt(process.env.VITE_SCW_DEPOSIT ?? "");
await fund(
[
await entrypoint.getAddress(),
Expand All @@ -61,13 +61,11 @@ const deployFunc = async function (): Promise<void> {
BigInt(initialFunding),
hardhatFundedAccount,
);
// Fund irene with a smaller amount to pay for gas
await fund([ireneAddress], BigInt(initialFunding / 10), hardhatFundedAccount);

// Fund the Entrypoint to pay for gas for the SCWs
await fundEntryPoint(
[await aliceWallet.getAddress(), await bobWallet.getAddress()],
BigInt(initialFunding / 10),
initialFunding,
await entrypoint.getAddress(),
hardhatFundedAccount,
);
Expand Down

0 comments on commit d0a108e

Please sign in to comment.