Test
This commit is contained in:
@@ -539,7 +539,7 @@ std::string PegsGetTokenName(uint256 tokenid)
|
|||||||
{
|
{
|
||||||
CTransaction tokentx; uint256 hashBlock; std::string name,desc; std::vector<uint8_t> vorigpubkey; int32_t numvouts;
|
CTransaction tokentx; uint256 hashBlock; std::string name,desc; std::vector<uint8_t> vorigpubkey; int32_t numvouts;
|
||||||
|
|
||||||
if (myGetTransaction(tokenid,tokentx,hashBlock,false)!=0 && (numvouts=tokentx.vout.size())>0 && DecodeTokenCreateOpRet(tokentx.vout[numvouts-1].scriptPubKey,vorigpubkey,name,desc)=='c')
|
if (myGetTransaction(tokenid,tokentx,hashBlock)!=0 && (numvouts=tokentx.vout.size())>0 && DecodeTokenCreateOpRet(tokentx.vout[numvouts-1].scriptPubKey,vorigpubkey,name,desc)=='c')
|
||||||
{
|
{
|
||||||
return (name);
|
return (name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user