From 2bafab8b22833a58de5b48e2c0d0d01f157d8799 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 7 Aug 2023 11:21:26 +0200 Subject: [PATCH] Adds check against failure to deploy codex contracts --- DistTestCore/Marketplace/CodexContractsStarter.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DistTestCore/Marketplace/CodexContractsStarter.cs b/DistTestCore/Marketplace/CodexContractsStarter.cs index 7a45016..c41df53 100644 --- a/DistTestCore/Marketplace/CodexContractsStarter.cs +++ b/DistTestCore/Marketplace/CodexContractsStarter.cs @@ -91,8 +91,13 @@ namespace DistTestCore.Marketplace { debug(line); if (line.Contains(RequiredCompiledString)) SeenCompileString = true; + if (line.Contains(ReadyString)) + { + if (!SeenCompileString) throw new Exception("CodexContracts deployment failed. " + + "Solidity files not compiled before process exited."); - if (SeenCompileString && line.Contains(ReadyString)) Found = true; + Found = true; + } } } }