@instadapp/avocado-base 0.1.0 → 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.0",
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
@@ -559,6 +559,7 @@ const typesPayload: IPayload = {
559
559
  }),
560
560
  mass: (data, type) => ({
561
561
  type,
562
+ data,
562
563
  }),
563
564
  };
564
565
 
@@ -581,7 +582,7 @@ const parseMetadata = (metadata: string) => {
581
582
  decodedMetadata.type
582
583
  ) as keyof typeof actionMetadataTypes;
583
584
 
584
- const decodedData = ethers.utils.defaultAbiCoder.decode(
585
+ const decodedData = decodedMetadata?.data === '0x' ? '' : ethers.utils.defaultAbiCoder.decode(
585
586
  actionMetadataTypes[type],
586
587
  decodedMetadata.data
587
588
  );