@stellar-expert/tx-meta-effects-parser 5.6.3 → 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
|
@@ -251,8 +251,8 @@ function parseContractData(value) {
|
|
|
251
251
|
switch (type) {
|
|
252
252
|
case 'contractExecutableStellarAsset':
|
|
253
253
|
entry.kind = 'fromAsset'
|
|
254
|
-
if (!instance.storage
|
|
255
|
-
|
|
254
|
+
if (!instance.storage?.length)
|
|
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')
|
|
258
258
|
throw new TxMetaEffectParserError('Unexpected asset initialization metadata')
|