From 4c36b8a82cb9c2f69021c9034eb54883abd1809a Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Fri, 19 Jul 2024 17:36:22 +0200 Subject: [PATCH] fix: code compiler test (#10454) --- .../smart_contract/solidity/code_compiler_test.exs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs b/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs index ed80cb1219..cef3b5465e 100644 --- a/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs +++ b/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs @@ -14,6 +14,13 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do describe "run/2" do setup do + configuration = Application.get_env(:explorer, Explorer.SmartContract.RustVerifierInterfaceBehaviour) + Application.put_env(:explorer, Explorer.SmartContract.RustVerifierInterfaceBehaviour, enabled: false) + + on_exit(fn -> + Application.put_env(:explorer, Explorer.SmartContract.RustVerifierInterfaceBehaviour, configuration) + end) + {:ok, contract_code_info: Factory.contract_code_info(), contract_code_info_modern_compiler: Factory.contract_code_info_modern_compiler()}