Skip to content

Commit c99f6ea

Browse files
committed
fix: correct variable names
1 parent b15af1b commit c99f6ea

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/fees.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ async function main() {
6262
logger.info(`Fee Juice minted to ${feeJuiceRecipient} on L2.`)
6363

6464
// set up sponsored fee payments
65-
const sponseredFPC = await getSponsoredFPCInstance();
66-
await pxe.registerContract({ instance: sponseredFPC, artifact: SponsoredFPCContract.artifact });
67-
const paymentMethod = new SponsoredFeePaymentMethod(sponseredFPC.address);
65+
const sponsoredFPC = await getSponsoredFPCInstance();
66+
await pxe.registerContract({ instance: sponsoredFPC, artifact: SponsoredFPCContract.artifact });
67+
const paymentMethod = new SponsoredFeePaymentMethod(sponsoredFPC.address);
6868

6969
// Two arbitrary txs to make the L1 message available on L2
7070
const votingContract = await EasyPrivateVotingContract.deploy(wallet1, wallet1.getAddress()).send({ fee: { paymentMethod } }).deployed();
@@ -120,8 +120,8 @@ async function main() {
120120
// Sponsored Fee Payment
121121

122122
// This method will only work in environments where there is a sponsored fee contract deployed
123-
const deployedSponseredFPC = await getDeployedSponsoredFPCAddress(pxe);
124-
const sponsoredPaymentMethod = new SponsoredFeePaymentMethod(deployedSponseredFPC);
123+
const deployedSponsoredFPC = await getDeployedSponsoredFPCAddress(pxe);
124+
const sponsoredPaymentMethod = new SponsoredFeePaymentMethod(deployedSponsoredFPC);
125125
await bananaCoin.withWallet(wallet2).methods.transfer_in_private(wallet2.getAddress(), wallet1.getAddress(), 10, 0).send({ fee: { paymentMethod: sponsoredPaymentMethod } }).wait()
126126
logger.info(`Transfer paid with fees from Sponsored FPC.`)
127127
}

scripts/multiple_pxe.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ async function main() {
5858

5959
const pxe1 = await setupPxe1();
6060
const pxe2 = await setupPxe2();
61-
const sponseredFPC = await getSponsoredFPCInstance();
62-
await pxe1.registerContract({ instance: sponseredFPC, artifact: SponsoredFPCContract.artifact });
63-
await pxe2.registerContract({ instance: sponseredFPC, artifact: SponsoredFPCContract.artifact });
64-
const paymentMethod = new SponsoredFeePaymentMethod(sponseredFPC.address);
61+
const sponsoredFPC = await getSponsoredFPCInstance();
62+
await pxe1.registerContract({ instance: sponsoredFPC, artifact: SponsoredFPCContract.artifact });
63+
await pxe2.registerContract({ instance: sponsoredFPC, artifact: SponsoredFPCContract.artifact });
64+
const paymentMethod = new SponsoredFeePaymentMethod(sponsoredFPC.address);
6565
// deploy token contract
6666

6767
let secretKey = Fr.random();

0 commit comments

Comments
 (0)