Fix token vout number for Gateways

This commit is contained in:
Mihailo Milenkovic
2019-02-28 19:05:44 +01:00
parent 12c8edb473
commit 2056d59c7e

View File

@@ -399,7 +399,7 @@ int64_t CCfullsupply(uint256 tokenid)
{ {
if (DecodeTokenCreateOpRet(tx.vout[numvouts-1].scriptPubKey,origpubkey,name,description)) if (DecodeTokenCreateOpRet(tx.vout[numvouts-1].scriptPubKey,origpubkey,name,description))
{ {
return(tx.vout[0].nValue); return(tx.vout[1].nValue);
} }
} }
return(0); return(0);