@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 +1 -1
- package/utils/metadata.ts +2 -1
package/package.json
CHANGED
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
|
);
|