github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/neotest/chain/chain_test.go (about) 1 package chain 2 3 import ( 4 "testing" 5 6 "github.com/nspcc-dev/neo-go/pkg/neotest" 7 "github.com/stretchr/testify/require" 8 ) 9 10 // TestNewMulti checks that the transaction and the block are signed correctly for multi-node setup. 11 func TestNewMulti(t *testing.T) { 12 bc, vAcc, cAcc := NewMulti(t) 13 e := neotest.NewExecutor(t, bc, vAcc, cAcc) 14 15 require.NotEqual(t, vAcc.ScriptHash(), cAcc.ScriptHash()) 16 17 const amount = int64(10_0000_0000) 18 19 c := e.CommitteeInvoker(bc.UtilityTokenHash()).WithSigners(vAcc) 20 c.Invoke(t, true, "transfer", e.Validator.ScriptHash(), e.Committee.ScriptHash(), amount, nil) 21 }