From 2efebf4206473ddfcb9ba70e1d473c97acfce3d3 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 29 Jan 2024 13:37:38 +0300 Subject: [PATCH] [#74] tests: Do not compile proxy contract twice Signed-off-by: Evgenii Stratonikov --- tests/proxy_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/proxy_test.go b/tests/proxy_test.go index ce34bcb..f36754d 100644 --- a/tests/proxy_test.go +++ b/tests/proxy_test.go @@ -24,10 +24,9 @@ func deployProxyContract(t *testing.T, e *neotest.Executor) util.Uint160 { func newProxyInvoker(t *testing.T) *neotest.ContractInvoker { e := newExecutor(t) - ctrProxy := neotest.CompileFile(t, e.CommitteeHash, proxyPath, path.Join(proxyPath, "config.yml")) - deployProxyContract(t, e) + proxyHash := deployProxyContract(t, e) - return e.CommitteeInvoker(ctrProxy.Hash) + return e.CommitteeInvoker(proxyHash) } func TestVerify(t *testing.T) {