@stellar-expert/tx-meta-effects-parser 5.6.4 → 5.6.5

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.4",
3
+ "version": "5.6.5",
4
4
  "description": "Low-level effects parser for Stellar transaction results and meta XDR",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -251,7 +251,7 @@ function parseContractData(value) {
251
251
  switch (type) {
252
252
  case 'contractExecutableStellarAsset':
253
253
  entry.kind = 'fromAsset'
254
- if (!instance.storage.length)
254
+ if (!instance.storage?.length)
255
255
  return undefined //likely the asset has been created "fromAddress" - no metadata in this case
256
256
  const metaArgs = instance.storage[0]._attributes
257
257
  if (metaArgs.key._value.toString() !== 'METADATA')