[#137] nns: remove unused function

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-01 14:03:59 +03:00 committed by Alex Vanin
parent e136e63be2
commit 555d4b8c04

View file

@ -637,13 +637,6 @@ func getIdRecordKey(tokenId []byte, name string, typ RecordType, id byte) []byte
return append(recordKey, byte(typ), id)
}
// addUniqueBytesToRecordKey add to key 4 unique bytes to allow store several records with the same type.
func addUniqueBytesToRecordKey(recordKey []byte) []byte {
tx := runtime.GetScriptContainer()
bb := []byte(tx.Hash)
return append(recordKey, bb[:4]...)
}
// isValid returns true if the provided address is a valid Uint160.
func isValid(address interop.Hash160) bool {
return address != nil && len(address) == 20