mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
neotest: check deployed contract hash
This commit is contained in:
parent
4057e635af
commit
1194361826
2 changed files with 13 additions and 5 deletions
|
@ -20,10 +20,7 @@ func newNSClient(t *testing.T) *neotest.ContractInvoker {
|
|||
c := neotest.CompileFile(t, e.CommitteeHash, "..", "../nns.yml")
|
||||
e.DeployContract(t, c, nil)
|
||||
|
||||
h, err := e.Chain.GetContractScriptHash(1)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, c.Hash, h)
|
||||
return e.CommitteeInvoker(h)
|
||||
return e.CommitteeInvoker(c.Hash)
|
||||
}
|
||||
|
||||
func TestNameService_Price(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue