From 2056d59c7ea30d9c9e9cef1d85b9483006bf881c Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Thu, 28 Feb 2019 19:05:44 +0100 Subject: [PATCH] Fix token vout number for Gateways --- src/cc/CCtx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index 52346ed2d..fd432359e 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -399,7 +399,7 @@ int64_t CCfullsupply(uint256 tokenid) { if (DecodeTokenCreateOpRet(tx.vout[numvouts-1].scriptPubKey,origpubkey,name,description)) { - return(tx.vout[0].nValue); + return(tx.vout[1].nValue); } } return(0);