From 1fa542aff9248ebba95e4cf00ef7019d5e83034c Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 04:56:00 -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 9da854019..2e7cd87cc 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -649,7 +649,7 @@ uint64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,uint64_t total,in return(0); } -std::string CreateAsset(std::vector mypubkey,uint64_t txfee,uint64_t assetsupply,std::string name,std::string description) +std::string CreateAsset(uint64_t txfee,uint64_t assetsupply,std::string name,std::string description) { CMutableTransaction mtx; CPubKey mypk; if ( name.size() > 32 || description.size() > 4096 ) @@ -659,11 +659,11 @@ std::string CreateAsset(std::vector mypubkey,uint64_t txfee,uint64_t as } if ( txfee == 0 ) txfee = 10000; - mypk = pubkey2pk(mypubkey); + mypk = pubkey2pk(Mypubkey()); if ( AddNormalinputs(mtx,mypk,assetsupply+txfee,64) > 0 ) { mtx.vout.push_back(MakeAssetsVout(assetsupply,mypk)); - return(FinalizeCCTx(EVAL_ASSETS,mtx,mypk,txfee,EncodeCreateOpRet('c',mypubkey,name,description))); + return(FinalizeCCTx(EVAL_ASSETS,mtx,mypk,txfee,EncodeCreateOpRet('c',Mypubkey(),name,description))); } return(0); }