From f49373054880273c5332678a011fac4180a71f27 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 08:42:17 -1100 Subject: [PATCH] Test --- src/cc/assets.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index 3362e4d31..604a6e7d5 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -451,14 +451,14 @@ uint64_t IsAssetvout(uint64_t &price,std::vector &origpubkey,CTransacti if ( v >= n-1 ) return(0); nValue = tx.vout[v].nValue; - if ( (funcid= DecodeOpRet(tx.vout[n-1].scriptPubKey,assetid,assetid2,price,origpubkey)) == 0 ) - return(0); if ( funcid == 'c' ) { if ( refassetid == tx.GetHash() && v == 0 ) return(nValue); } - else if ( funcid != 'E' ) + if ( (funcid= DecodeOpRet(tx.vout[n-1].scriptPubKey,assetid,assetid2,price,origpubkey)) == 0 ) + return(0); + if ( funcid != 'E' ) { if ( assetid == refassetid ) return(nValue);