@stellar-expert/tx-meta-effects-parser 5.0.0-beta14 → 5.0.1

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": "5.0.0-beta14",
3
+ "version": "5.0.1",
4
4
  "description": "Low-level effects parser for Stellar transaction results and meta XDR",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -146,13 +146,13 @@ class EventsAnalyzer {
146
146
  this.effectAnalyzer.burn(classicAsset, amount)
147
147
  this.effectAnalyzer.mint(sorobanAsset, amount)
148
148
  } else {
149
- this.effectAnalyzer.debit(amount, isContractAddress(from) ? sorobanAsset : classicAsset, from)
149
+ this.effectAnalyzer.debit(amount, sorobanAsset, from)
150
150
  }
151
151
  if (classicAsset && !isContractAddress(to)) { //classic asset bridged from Soroban
152
152
  this.effectAnalyzer.burn(sorobanAsset, amount)
153
153
  this.effectAnalyzer.mint(classicAsset, amount)
154
154
  } else {
155
- this.effectAnalyzer.credit(amount, isContractAddress(to) ? sorobanAsset : classicAsset, to)
155
+ this.effectAnalyzer.credit(amount, sorobanAsset, to)
156
156
  }
157
157
  }
158
158