Skip to content

Commit

Permalink
fix: await on test transaction failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cpb8010 committed Dec 4, 2024
1 parent 5c09a2e commit 24f6263
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/SessionKeyTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ class SessionTester {
};

const signedTransaction = await this.sessionAccount.signTransaction(this.aaTransaction);
expect (provider.broadcastTransaction(signedTransaction)).to.be.reverted;
// this fails with "receipt should not be null"?
console.log("signedTransaction", signedTransaction);
await expect (provider.broadcastTransaction(signedTransaction)).to.be.reverted;
};

getLimit(limit?: PartialLimit): SessionLib.UsageLimitStruct {
Expand Down

0 comments on commit 24f6263

Please sign in to comment.