From 3df89dae1aa19b64717cc83fa614e4ac3418f4f2 Mon Sep 17 00:00:00 2001 From: alex v Date: Mon, 9 Dec 2024 09:51:50 +0100 Subject: [PATCH] fix obj schema --- src/blsct/tokens/rpc.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/blsct/tokens/rpc.cpp b/src/blsct/tokens/rpc.cpp index be3e2c095dbd4..b5870563c4226 100644 --- a/src/blsct/tokens/rpc.cpp +++ b/src/blsct/tokens/rpc.cpp @@ -15,10 +15,12 @@ std::vector tokenInfoResult = { RPCResult{RPCResult::Type::STR_HEX, "tokenId", "the token id"}, RPCResult{RPCResult::Type::STR_HEX, "publicKey", "the token public key"}, RPCResult{RPCResult::Type::STR, "type", "the token type"}, - RPCResult{RPCResult::Type::ANY, "metadata", "the token metadata"}, - RPCResult{RPCResult::Type::NUM, "maxSupply", "the token max supply"}, - RPCResult{RPCResult::Type::NUM, "currentSupply", true, "the token current supply"}, - RPCResult{RPCResult::Type::ANY, "mintedNft", true, "the nfts already minted"}, + RPCResult{RPCResult::Type::OBJ_DYN, "metadata", "the token metadata", { + {RPCResult::Type::STR, "", "the metadata value"}, + }}, + RPCResult{RPCResult::Type::NUM, "maxSupply", "the token max supply"}, RPCResult{RPCResult::Type::NUM, "currentSupply", true, "the token current supply"}, RPCResult{RPCResult::Type::OBJ_DYN, "mintedNft", true, "the nfts already minted", {{RPCResult::Type::OBJ, "", "", { + {RPCResult::Type::STR, "", "the metadata value"}, + }}}} };