From b82544b0fe0b9a471572fb0d97578ccb63ec1a22 Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Thu, 21 Dec 2023 07:54:42 +0300 Subject: [PATCH] [#876] policy: Fix `SetAdmin` Signed-off-by: Anton Nikiforov --- pkg/morph/policy/policy_contract_storage.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/morph/policy/policy_contract_storage.go b/pkg/morph/policy/policy_contract_storage.go index 48891cb..2e0a756 100644 --- a/pkg/morph/policy/policy_contract_storage.go +++ b/pkg/morph/policy/policy_contract_storage.go @@ -108,9 +108,8 @@ func (s *ContractStorage) GetAdmin() (util.Uint160, error) { return s.contractInterface.GetAdmin() } -func (s *ContractStorage) SetAdmin(addr util.Uint160) error { - _, _, err := s.contractInterface.SetAdmin(addr) - return err +func (s *ContractStorage) SetAdmin(addr util.Uint160) (util.Uint256, uint32, error) { + return s.contractInterface.SetAdmin(addr) } func bytesFromStackItem(param stackitem.Item) ([]byte, error) {