mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
28908aa3cf
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
21 lines
594 B
Go
21 lines
594 B
Go
package chain
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/neotest"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
// TestNewMulti checks that the transaction and the block are signed correctly for multi-node setup.
|
|
func TestNewMulti(t *testing.T) {
|
|
bc, vAcc, cAcc := NewMulti(t)
|
|
e := neotest.NewExecutor(t, bc, vAcc, cAcc)
|
|
|
|
require.NotEqual(t, vAcc.ScriptHash(), cAcc.ScriptHash())
|
|
|
|
const amount = int64(10_0000_0000)
|
|
|
|
c := e.CommitteeInvoker(bc.UtilityTokenHash()).WithSigners(vAcc)
|
|
c.Invoke(t, true, "transfer", e.Validator.ScriptHash(), e.Committee.ScriptHash(), amount, nil)
|
|
}
|