From 3fc80702c53ecb3c1a42678ca4819ab6610a7cce Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 27 Nov 2023 12:57:38 +0300 Subject: [PATCH] netmap: Fix unused linter With `nolint` of course. Seems like `unused` ignores funcs that are marked with `nolint` and does not see the old keys usage. Signed-off-by: Pavel Karpy --- netmap/netmap_contract.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netmap/netmap_contract.go b/netmap/netmap_contract.go index 20c312a2..c57813f7 100644 --- a/netmap/netmap_contract.go +++ b/netmap/netmap_contract.go @@ -71,8 +71,10 @@ const ( snapshotEpoch = "snapshotEpoch" snapshotBlockKey = "snapshotBlock" + // nolint:unused // used only in _deploy func which is nolinted too containerContractKey = "containerScriptHash" - balanceContractKey = "balanceScriptHash" + // nolint:unused // used only in _deploy func which is nolinted too + balanceContractKey = "balanceScriptHash" newEpochSubscribersPrefix = "e" cleanupEpochMethod = "newEpoch"