state: drop NativeContract, fix #3430
This unifies getnativecontracts RPC API with regular contracts. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
13020ccd02
commit
b1bb12df48
6 changed files with 14 additions and 18 deletions
|
@ -29,11 +29,6 @@ type ContractBase struct {
|
|||
Manifest manifest.Manifest `json:"manifest"`
|
||||
}
|
||||
|
||||
// NativeContract holds information about the native contract.
|
||||
type NativeContract struct {
|
||||
ContractBase
|
||||
}
|
||||
|
||||
// ToStackItem converts state.Contract to stackitem.Item.
|
||||
func (c *Contract) ToStackItem() (stackitem.Item, error) {
|
||||
// Do not skip the NEF size check, it won't affect native Management related
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue