[#58] neofsid: Use alphabet list from chain

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-24 11:11:10 +03:00 committed by Alex Vanin
parent 79cff420b4
commit 766596f496

View file

@ -61,7 +61,7 @@ func AddKey(owner []byte, keys []interop.PublicKey) bool {
ctx := storage.GetContext()
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
multiaddr := common.AlphabetAddress()
if !runtime.CheckWitness(multiaddr) {
panic("addKey: invocation from non inner ring node")
}
@ -98,7 +98,7 @@ func RemoveKey(owner []byte, keys []interop.PublicKey) bool {
ctx := storage.GetContext()
multiaddr := common.InnerRingMultiAddressViaStorage(ctx, netmapContractKey)
multiaddr := common.AlphabetAddress()
if !runtime.CheckWitness(multiaddr) {
panic("removeKey: invocation from non inner ring node")
}