From 28d57c0b13a092b44f287642cf12062d44e7059d Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 12 Oct 2021 15:27:55 +0300 Subject: [PATCH] bin: Adopt resolve script for new NNS contract Supports both old NNS (neofs-contract v0.11.0) version and new one NNS. Signed-off-by: Alex Vanin --- bin/resolve.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/resolve.sh b/bin/resolve.sh index e5bfdd9..8565a93 100755 --- a/bin/resolve.sh +++ b/bin/resolve.sh @@ -10,4 +10,4 @@ NNS_ADDR=`curl -s --data '{ "id": 1, "jsonrpc": "2.0", "method": "getcontractsta ${NEOGO} contract testinvokefunction \ -r http://morph_chain.${LOCAL_DOMAIN}:30333 \ -${NNS_ADDR} resolve string:${1} int:16 | jq -r '.stack[0].value' | base64 -d +${NNS_ADDR} resolve string:${1} int:16 | jq -r '.stack[0].value | if type=="array" then .[0].value else . end' | base64 -d