Skip to content

Commit a51c534

Browse files
committed
fix: update contract registration method to improve clarity and consistency
1 parent b67859c commit a51c534

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/test/e2e/accounts.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { PodRacingContractArtifact, PodRacingContract } from "../../artifacts/PodRacing.js"
22
import { generateSchnorrAccounts } from "@aztec/accounts/testing"
33
import { SponsoredFeePaymentMethod } from '@aztec/aztec.js/fee/testing'
4-
import { createEthereumChain, createExtendedL1Client } from '@aztec/ethereum';
4+
import { createEthereumChain } from '@aztec/ethereum/chain';
5+
import { createExtendedL1Client } from '@aztec/ethereum/client';
56
import { getSponsoredFPCInstance } from "../../utils/sponsored_fpc.js";
67
import { setupWallet } from "../../utils/setup_wallet.js";
78
import { SponsoredFPCContract } from "@aztec/noir-contracts.js/SponsoredFPC";
@@ -44,7 +45,7 @@ describe("Accounts", () => {
4445
wallet = await setupWallet();
4546

4647
sponsoredFPC = await getSponsoredFPCInstance();
47-
await wallet.registerContract({ instance: sponsoredFPC, artifact: SponsoredFPCContract.artifact });
48+
await wallet.registerContract(sponsoredFPC, SponsoredFPCContract.artifact);
4849
sponsoredPaymentMethod = new SponsoredFeePaymentMethod(sponsoredFPC.address);
4950

5051
// create default ethereum clients
@@ -208,7 +209,7 @@ describe("Accounts", () => {
208209
}),
209210
);
210211

211-
expect(receiptAfterMined.contract.instance.address).toEqual(deploymentData.address)
212+
expect(receiptAfterMined.contract.address).toEqual(deploymentData.address)
212213
})
213214

214215
});

src/test/e2e/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe("Pod Racing Game", () => {
9696
wallet = await setupWallet();
9797

9898
sponsoredFPC = await getSponsoredFPCInstance();
99-
await wallet.registerContract({ instance: sponsoredFPC, artifact: SponsoredFPCContract.artifact });
99+
await wallet.registerContract(sponsoredFPC, SponsoredFPCContract.artifact);
100100
sponsoredPaymentMethod = new SponsoredFeePaymentMethod(sponsoredFPC.address);
101101

102102
// Create two player accounts

0 commit comments

Comments
 (0)