@stellar-expert/tx-meta-effects-parser 6.1.1 → 6.2.0
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 +1 -1
- package/src/effects-analyzer.js +7 -3
package/package.json
CHANGED
package/src/effects-analyzer.js
CHANGED
|
@@ -213,9 +213,9 @@ class EffectsAnalyzer {
|
|
|
213
213
|
if (sorobanExt) {
|
|
214
214
|
const attrs = sorobanExt._attributes
|
|
215
215
|
const fee = {
|
|
216
|
-
nonrefundable: parseLargeInt(attrs.totalNonRefundableResourceFeeCharged),
|
|
217
|
-
refundable: parseLargeInt(attrs.totalRefundableResourceFeeCharged),
|
|
218
|
-
rent: parseLargeInt(attrs.rentFeeCharged)
|
|
216
|
+
nonrefundable: parseInt(parseLargeInt(attrs.totalNonRefundableResourceFeeCharged)),
|
|
217
|
+
refundable: parseInt(parseLargeInt(attrs.totalRefundableResourceFeeCharged)),
|
|
218
|
+
rent: parseInt(parseLargeInt(attrs.rentFeeCharged))
|
|
219
219
|
}
|
|
220
220
|
this.addMetric(this.retrieveOpContractId(), 'fee', fee)
|
|
221
221
|
}
|
|
@@ -1105,6 +1105,10 @@ function validateAmount(amount) {
|
|
|
1105
1105
|
return amount
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
|
+
/**
|
|
1109
|
+
* @param largeInt
|
|
1110
|
+
* @return {String}
|
|
1111
|
+
*/
|
|
1108
1112
|
function parseLargeInt(largeInt) {
|
|
1109
1113
|
return largeInt._value.toString()
|
|
1110
1114
|
}
|