From edbd13734048f2d26902719460792ca12b066ead Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 22 Oct 2021 15:08:51 +0300 Subject: [PATCH] [#98] nns: add `Version` method Signed-off-by: Evgenii Stratonikov --- nns/nns_contract.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nns/nns_contract.go b/nns/nns_contract.go index 1fa90e9..d815914 100644 --- a/nns/nns_contract.go +++ b/nns/nns_contract.go @@ -19,6 +19,7 @@ import ( "github.com/nspcc-dev/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/nspcc-dev/neofs-contract/common" ) // Prefixes used for contract data storage. @@ -131,6 +132,11 @@ func Decimals() int { return 0 } +// Version returns version of the contract. +func Version() int { + return common.Version +} + // TotalSupply returns overall number of domains minted by the NeoNameService contract. func TotalSupply() int { ctx := storage.GetReadOnlyContext()