From 82a7c1bd9c08fae4a26fbe5fed1f81ea7b73ed23 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 17 May 2024 12:30:33 +0300 Subject: [PATCH] native: adjust test helper behaviour Supply the account with expected balance. Signed-off-by: Anna Shaleva --- pkg/core/native/native_test/neo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/native/native_test/neo_test.go b/pkg/core/native/native_test/neo_test.go index c3ea676f7..7f9fb924a 100644 --- a/pkg/core/native/native_test/neo_test.go +++ b/pkg/core/native/native_test/neo_test.go @@ -39,7 +39,7 @@ func newNeoCommitteeClient(t *testing.T, expectedGASBalance int) *neotest.Contra e := neotest.NewExecutor(t, bc, validators, committee) if expectedGASBalance > 0 { - e.ValidatorInvoker(e.NativeHash(t, nativenames.Gas)).Invoke(t, true, "transfer", e.Validator.ScriptHash(), e.CommitteeHash, 100_0000_0000, nil) + e.ValidatorInvoker(e.NativeHash(t, nativenames.Gas)).Invoke(t, true, "transfer", e.Validator.ScriptHash(), e.CommitteeHash, expectedGASBalance, nil) } return e.CommitteeInvoker(e.NativeHash(t, nativenames.Neo))