From 8806f6dcaf4301c31e77230893ac133dbac23409 Mon Sep 17 00:00:00 2001 From: Vincent Brunet Date: Mon, 17 Jun 2024 11:45:57 +0100 Subject: [PATCH] get validator error message --- tests/bolt.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/bolt.ts b/tests/bolt.ts index 9436c50..c360482 100644 --- a/tests/bolt.ts +++ b/tests/bolt.ts @@ -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);