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:
Roman Khimov 2024-05-16 18:46:00 +03:00
parent 13020ccd02
commit b1bb12df48
6 changed files with 14 additions and 18 deletions

View file

@ -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
}