This commit is contained in:
jl777
2018-07-21 03:32:58 -11:00
parent 58875d2506
commit 7d03ac603b

View File

@@ -288,10 +288,9 @@ CC *MakeAssetCond(CPubKey pk)
CTxOut MakeAssetsVout(CAmount nValue,CPubKey pk) CTxOut MakeAssetsVout(CAmount nValue,CPubKey pk)
{ {
CTxOut vout; CScript scriptPubKey; CTxOut vout;
CC *payoutCond = MakeAssetCond(pk); CC *payoutCond = MakeAssetCond(pk);
scriptPubKey = CCPubKey(payoutCond); vout = CTxOut(nValue,CCPubKey(payoutCond));
vout = CTxOut(nValue,scriptPubkey);
cc_free(payoutCond); cc_free(payoutCond);
return(vout); return(vout);
} }