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

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
enable-notary-in-public-chains
Pavel Karpy 2021-07-21 15:05:58 +03:00 committed by Alex Vanin
parent a0db77247e
commit 5a95c8e3cf
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func _deploy(data interface{}, isUpdate bool) {
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")
}