[#58] neofsid: Use alphabet list from chain
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
79cff420b4
commit
766596f496
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue