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
|
@ -265,8 +265,8 @@ func (c *Client) getContractState(param any) (*state.Contract, error) {
|
|||
}
|
||||
|
||||
// GetNativeContracts queries information about native contracts.
|
||||
func (c *Client) GetNativeContracts() ([]state.NativeContract, error) {
|
||||
var resp []state.NativeContract
|
||||
func (c *Client) GetNativeContracts() ([]state.Contract, error) {
|
||||
var resp []state.Contract
|
||||
if err := c.performRequest("getnativecontracts", nil, &resp); err != nil {
|
||||
return resp, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue