@stellar-expert/tx-meta-effects-parser 8.4.0 → 8.5.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
CHANGED
|
@@ -267,13 +267,19 @@ function xdrParseScVal(value, treatBytesAsContractId = false) {
|
|
|
267
267
|
case 'address':
|
|
268
268
|
switch (value._value._arm) {
|
|
269
269
|
case 'accountId':
|
|
270
|
-
return xdrParseAccountAddress(value._value.
|
|
270
|
+
return xdrParseAccountAddress(value._value._value)
|
|
271
271
|
case 'contractId':
|
|
272
|
-
return xdrParseContractAddress(value._value.
|
|
272
|
+
return xdrParseContractAddress(value._value._value)
|
|
273
273
|
case 'muxedAccount':
|
|
274
|
-
return xdrParseMuxedScAddress(value._value.
|
|
274
|
+
return xdrParseMuxedScAddress(value._value._value)
|
|
275
|
+
case 'liquidityPoolId':
|
|
276
|
+
return StrKey.encodeLiquidityPool(value._value._value)
|
|
277
|
+
case 'claimableBalanceId':
|
|
278
|
+
return StrKey.encodeClaimableBalance(value._value._value._value)
|
|
275
279
|
}
|
|
276
280
|
throw new TxMetaEffectParserError('Not supported XDR primitive type: ' + value._value._arm.toString())
|
|
281
|
+
case 'accountId':
|
|
282
|
+
return xdrParseAccountAddress(value._value.ed25519())
|
|
277
283
|
case 'bytes':
|
|
278
284
|
return treatBytesAsContractId ? xdrParseContractAddress(value.value()) : value._value.toString('base64')
|
|
279
285
|
case 'i32':
|