diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index 68efbd9db..f0a70a083 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -147,7 +147,7 @@ bool AssetValidate(Eval* eval,const CTransaction &tx,int32_t numvouts,uint8_t fu else starti = 1; if ( assetid == zero ) return eval->Invalid("illegal assetid"); - else if ( funcid == 'o' || funcid == 'x' || AssetExactAmounts(inputs,starti,outputs,eval,tx,assetid) == false ) + else if ( funcid != 'o' && funcid != 'x' && AssetExactAmounts(inputs,starti,outputs,eval,tx,assetid) == false ) return eval->Invalid("asset inputs != outputs"); } switch ( funcid )