@instadapp/avocado-base 0.1.1 → 0.1.2

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": "@instadapp/avocado-base",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/metadata.ts CHANGED
@@ -582,7 +582,7 @@ const parseMetadata = (metadata: string) => {
582
582
  decodedMetadata.type
583
583
  ) as keyof typeof actionMetadataTypes;
584
584
 
585
- const decodedData = ethers.utils.defaultAbiCoder.decode(
585
+ const decodedData = decodedMetadata?.data === '0x' ? '' : ethers.utils.defaultAbiCoder.decode(
586
586
  actionMetadataTypes[type],
587
587
  decodedMetadata.data
588
588
  );