mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 01:41:48 +00:00
state: drop Network from MPTRoot structure
It's only needed to verify/sign.
This commit is contained in:
parent
f91ff78918
commit
8c110a6147
10 changed files with 20 additions and 42 deletions
|
@ -1364,7 +1364,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
|
|||
body := doRPCCall(rpc, httpSrv.URL, t)
|
||||
rawRes := checkErrGetResult(t, body, false)
|
||||
|
||||
res := &state.MPTRoot{Network: netmode.UnitTestNet}
|
||||
res := &state.MPTRoot{}
|
||||
require.NoError(t, json.Unmarshal(rawRes, res))
|
||||
require.NotEqual(t, util.Uint256{}, res.Root) // be sure this test uses valid height
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue