From d5e230e0317ebeeafa2bd6205277ceea39b6f53a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 22 Mar 2021 16:56:59 +0300 Subject: [PATCH] [#58] neofs: Do not limit initial inner ring key amount Environment with single inner ring node is legal. Signed-off-by: Alex Vanin --- neofs/neofs_contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofs/neofs_contract.go b/neofs/neofs_contract.go index e43f0d6..33ed37b 100644 --- a/neofs/neofs_contract.go +++ b/neofs/neofs_contract.go @@ -88,8 +88,8 @@ func Init(owner interop.PublicKey, args []interop.PublicKey) bool { var irList []common.IRNode - if len(args) < 3 { - panic("neofs: at least three inner ring keys must be provided") + if len(args) == 0 { + panic("neofs: at least one inner ring key must be provided") } for i := 0; i < len(args); i++ {