From ca2f9c6d9ed4634923eab590ee9007369c387df5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 08:03:39 -1100 Subject: [PATCH] Test --- src/cc/assets.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index 3616ed596..c14c2affe 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -362,19 +362,26 @@ uint8_t DecodeOpRet(const CScript &scriptPubKey,uint256 &assetid,uint256 &asseti int32_t i; for (i=0; i<32; i++) fprintf(stderr,"%02x",((uint8_t *)&assetid)[i]); fprintf(stderr," got assetid\n"); + assetid = revuint256(assetid); return(funcid); } break; case 's': case 'b': case 'S': case 'B': if ( E_UNMARSHAL(vopret,ss >> e; ss >> f; ss >> assetid; ss >> price; ss >> origpubkey) != 0 ) { + assetid = revuint256(assetid); fprintf(stderr,"got price %llu\n",(long long)price); return(funcid); } break; case 'E': case 'e': if ( E_UNMARSHAL(vopret,ss >> e; ss >> f; ss >> assetid; ss >> assetid2; ss >> price; ss >> origpubkey) != 0 ) + { + fprintf(stderr,"got price %llu\n",(long long)price); + assetid = revuint256(assetid); + assetid2 = revuint256(assetid2); return(funcid); + } break; default: fprintf(stderr,"DecodeOpRet: illegal funcid.%02x\n",funcid);