native: adjust test helper behaviour
Supply the account with expected balance. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
c43cfae24c
commit
82a7c1bd9c
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ func newNeoCommitteeClient(t *testing.T, expectedGASBalance int) *neotest.Contra
|
||||||
e := neotest.NewExecutor(t, bc, validators, committee)
|
e := neotest.NewExecutor(t, bc, validators, committee)
|
||||||
|
|
||||||
if expectedGASBalance > 0 {
|
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))
|
return e.CommitteeInvoker(e.NativeHash(t, nativenames.Neo))
|
||||||
|
|
Loading…
Reference in a new issue