This commit is contained in:
jl777
2018-09-04 00:31:40 -11:00
parent ff1acd5538
commit 3caaec319e
2 changed files with 14 additions and 6 deletions

View File

@@ -96,7 +96,7 @@
CScript EncodeOraclesCreateOpRet(uint8_t funcid,std::string name,std::string description,std::string format)
{
CScript opret; uint8_t evalcode = EVAL_ORACLES;
opret << OP_RETURN << E_MARSHAL(ss << evalcode << funcid << name << description << format);
opret << OP_RETURN << E_MARSHAL(ss << evalcode << funcid << name << format << description);
return(opret);
}
@@ -109,7 +109,7 @@ uint8_t DecodeOraclesCreateOpRet(const CScript &scriptPubKey,std::string &name,s
{
if ( script[1] == 'C' )
{
if ( E_UNMARSHAL(vopret,ss >> e; ss >> f; ss >> name; ss >> description; ss >> format) != 0 )
if ( E_UNMARSHAL(vopret,ss >> e; ss >> f; ss >> name; ss >> format; ss >> description) != 0 )
{
return(script[1]);
} else fprintf(stderr,"DecodeOraclesCreateOpRet unmarshal error for C\n");