mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Reverse endianness of asset field in gettxout to match everywhere else
This commit is contained in:
parent
3c376534e3
commit
bfe4e517a5
2 changed files with 12 additions and 2 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue