Skip to content

Commit 1d69f0b

Browse files
authored
Merge pull request #5 from critesjosh/codex/enhance-e2e-test-to-verify-transaction-status
Enhance account deployment test
2 parents ee6b10e + f27c07a commit 1d69f0b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/test/e2e/accounts.test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,18 @@ describe("Accounts", () => {
122122
});
123123

124124
it("Deploys first unfunded account from first funded account", async () => {
125-
const tx_acc = await randomAccountManagers[0].deploy({ fee: { paymentMethod: sponsoredPaymentMethod }, deployWallet: ownerWallet }).wait();
125+
const receipt = await randomAccountManagers[0]
126+
.deploy({ fee: { paymentMethod: sponsoredPaymentMethod }, deployWallet: ownerWallet })
127+
.wait();
128+
129+
expect(receipt).toEqual(
130+
expect.objectContaining({
131+
status: TxStatus.SUCCESS,
132+
}),
133+
);
134+
135+
const deployedWallet = await randomAccountManagers[0].getWallet();
136+
expect(deployedWallet.getAddress()).toEqual(randomAccountManagers[0].getAddress());
126137
});
127138

128139
it("Sponsored contract deployment", async () => {

0 commit comments

Comments
 (0)