@stellar-expert/tx-meta-effects-parser 7.0.0-rc.15 → 7.0.0-rc.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/tx-meta-effects-parser",
3
- "version": "7.0.0-rc.15",
3
+ "version": "7.0.0-rc.16",
4
4
  "description": "Low-level effects parser for Stellar transaction results and meta XDR",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -234,13 +234,15 @@ function parseLiquidityPoolEntry(value) {
234
234
 
235
235
  function parseOfferEntry(value) {
236
236
  const offerEntryXdr = value.value()
237
+ const rprice = offerEntryXdr.price()
237
238
  const data = {
238
239
  entry: 'offer',
239
240
  id: offerEntryXdr.offerId().toString(),
240
241
  account: xdrParseAccountAddress(offerEntryXdr.sellerId()),
241
242
  asset: [xdrParseAsset(offerEntryXdr.selling()), xdrParseAsset(offerEntryXdr.buying())],
242
243
  amount: offerEntryXdr.amount().toString(),
243
- price: xdrParsePrice(offerEntryXdr.price()),
244
+ price: xdrParsePrice(rprice),
245
+ rprice,
244
246
  flags: offerEntryXdr.flags()
245
247
  }
246
248
  return data