@stellar-expert/tx-meta-effects-parser 5.6.0 → 5.6.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.6.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"description": "Low-level effects parser for Stellar transaction results and meta XDR",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "team@stellar.expert",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@stellar/stellar-base": "^12.0
|
|
12
|
+
"@stellar/stellar-base": "^12.1.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@babel/core": "^7.22.9",
|
|
@@ -190,7 +190,7 @@ class EventsAnalyzer {
|
|
|
190
190
|
}
|
|
191
191
|
const asset = this.effectsAnalyzer.resolveAsset(contract)
|
|
192
192
|
this.effectsAnalyzer.mint(asset, amount)
|
|
193
|
-
if (isContractAddress(asset)) {
|
|
193
|
+
if (isContractAddress(asset) || isContractAddress(to)) {
|
|
194
194
|
this.effectsAnalyzer.credit(amount, asset, to)
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -209,7 +209,7 @@ class EventsAnalyzer {
|
|
|
209
209
|
mapSacContract(this.effectsAnalyzer, contract, xdrParseAsset(xdrParseScVal(topics[2])))
|
|
210
210
|
}
|
|
211
211
|
const asset = this.effectsAnalyzer.resolveAsset(contract)
|
|
212
|
-
if (isContractAddress(asset)) {
|
|
212
|
+
if (isContractAddress(asset) || isContractAddress(from)) {
|
|
213
213
|
this.effectsAnalyzer.debit(amount, asset, from)
|
|
214
214
|
}
|
|
215
215
|
this.effectsAnalyzer.burn(asset, amount)
|