[#109] alphabet: Do not check proxy len if notary disabled

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-07-21 15:05:58 +03:00 committed by Alex Vanin
parent a0db77247e
commit 5a95c8e3cf

View file

@ -53,7 +53,7 @@ func _deploy(data interface{}, isUpdate bool) {
panic("only owner can reinitialize contract") panic("only owner can reinitialize contract")
} }
if len(addrNetmap) != 20 || len(addrProxy) != 20 { if len(addrNetmap) != 20 || !notaryDisabled && len(addrProxy) != 20 {
panic("incorrect length of contract script hash") panic("incorrect length of contract script hash")
} }