mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 13:06:20 +00:00
core: call from native contracts synchronously
Follow neo-project/neo#2130.
This commit is contained in:
parent
189d0d801a
commit
e903e40085
9 changed files with 87 additions and 38 deletions
|
@ -972,7 +972,7 @@ func TestContractCreateDeploy(t *testing.T) {
|
|||
|
||||
cs.Hash = state.CreateContractHash(sender, cs.Script)
|
||||
v.LoadScriptWithHash(currCs.Script, cs.Hash, smartcontract.All)
|
||||
err := contract.CallExInternal(ic, cs, "getValue", nil, smartcontract.All, vm.EnsureNotEmpty, nil)
|
||||
err := contract.CallExInternal(ic, cs, "getValue", nil, smartcontract.All, vm.EnsureNotEmpty)
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, v.Run())
|
||||
require.Equal(t, "create", v.Estack().Pop().String())
|
||||
|
@ -993,7 +993,7 @@ func TestContractCreateDeploy(t *testing.T) {
|
|||
require.NoError(t, v.Run())
|
||||
|
||||
v.LoadScriptWithHash(currCs.Script, cs.Hash, smartcontract.All)
|
||||
err = contract.CallExInternal(ic, newCs, "getValue", nil, smartcontract.All, vm.EnsureNotEmpty, nil)
|
||||
err = contract.CallExInternal(ic, newCs, "getValue", nil, smartcontract.All, vm.EnsureNotEmpty)
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, v.Run())
|
||||
require.Equal(t, "update", v.Estack().Pop().String())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue