From 555d4b8c046f89f9a99d3bb5ca47fd4a1bd7d9aa Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 1 Oct 2021 14:03:59 +0300 Subject: [PATCH] [#137] nns: remove unused function Signed-off-by: Evgenii Stratonikov --- nns/nns_contract.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nns/nns_contract.go b/nns/nns_contract.go index c301db3..1fa90e9 100644 --- a/nns/nns_contract.go +++ b/nns/nns_contract.go @@ -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