Reverse endianness of asset field in gettxout to match everywhere else

This commit is contained in:
Gregory Sanders 2017-07-19 07:36:31 -04:00
parent 3c376534e3
commit bfe4e517a5
2 changed files with 12 additions and 2 deletions

View file

@ -965,7 +965,7 @@ UniValue gettxout(const JSONRPCRequest& request)
ret.push_back(Pair("amountcommitment", HexStr(coins.vout[n].nValue.vchCommitment)));
}
if (coins.vout[n].nAsset.IsExplicit()) {
ret.push_back(Pair("asset", HexStr(coins.vout[n].nAsset.vchCommitment)));
ret.push_back(Pair("asset", coins.vout[n].nAsset.GetAsset().GetHex()));
} else {
ret.push_back(Pair("assetcommitment", HexStr(coins.vout[n].nAsset.vchCommitment)));
}