state: split ContractBase and UpdateCounter
Latter doesn't make sense for native contracts.
This commit is contained in:
parent
29b1581ea8
commit
e1d2a5b5b7
9 changed files with 113 additions and 74 deletions
|
@ -350,10 +350,12 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
|
|||
}
|
||||
m := manifest.NewManifest("Test")
|
||||
cs := &state.Contract{
|
||||
ID: 0,
|
||||
Hash: hash.Hash160(script),
|
||||
NEF: newTestNEF(script),
|
||||
Manifest: *m,
|
||||
ContractBase: state.ContractBase{
|
||||
ID: 0,
|
||||
Hash: hash.Hash160(script),
|
||||
NEF: newTestNEF(script),
|
||||
Manifest: *m,
|
||||
},
|
||||
}
|
||||
return cs
|
||||
},
|
||||
|
@ -371,10 +373,12 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
|
|||
}
|
||||
m := manifest.NewManifest("Test")
|
||||
cs := &state.Contract{
|
||||
ID: 0,
|
||||
Hash: hash.Hash160(script),
|
||||
NEF: newTestNEF(script),
|
||||
Manifest: *m,
|
||||
ContractBase: state.ContractBase{
|
||||
ID: 0,
|
||||
Hash: hash.Hash160(script),
|
||||
NEF: newTestNEF(script),
|
||||
Manifest: *m,
|
||||
},
|
||||
}
|
||||
return cs
|
||||
},
|
||||
|
@ -392,10 +396,12 @@ var rpcClientTestCases = map[string][]rpcClientTestCase{
|
|||
}
|
||||
m := manifest.NewManifest("Test")
|
||||
cs := &state.Contract{
|
||||
ID: 0,
|
||||
Hash: hash.Hash160(script),
|
||||
NEF: newTestNEF(script),
|
||||
Manifest: *m,
|
||||
ContractBase: state.ContractBase{
|
||||
ID: 0,
|
||||
Hash: hash.Hash160(script),
|
||||
NEF: newTestNEF(script),
|
||||
Manifest: *m,
|
||||
},
|
||||
}
|
||||
return cs
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue