Skip to content

Commit

Permalink
get validator error message
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-vincent committed Jun 17, 2024
1 parent 0bd6c26 commit 8806f6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/bolt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ describe("bolt", () => {

let failed = false;
try {
await provider.sendAndConfirm(applySystem.transaction);
await provider.sendAndConfirm(applySystem.transaction, [], {
skipPreflight: true, // Skip preflight to get error message from validator
});
} catch (error) {
failed = true;
console.log("error.message", error.message);
Expand Down

0 comments on commit 8806f6d

Please sign in to comment.