@instadapp/avocado-base 0.0.0-dev.8b85ca3 → 0.0.0-dev.8dda10f

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.0.0-dev.8b85ca3",
3
+ "version": "0.0.0-dev.8dda10f",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/metadata.ts CHANGED
@@ -558,7 +558,7 @@ const typesPayload: IPayload = {
558
558
  toChainId: data.toChainId ? data.toChainId.toString() : null,
559
559
  }),
560
560
  mass: (data, type) => ({
561
- type: 'Chain Agnostic Payments',
561
+ type,
562
562
  data,
563
563
  }),
564
564
  };
@@ -605,6 +605,10 @@ const parseMetadata = (metadata: string) => {
605
605
  * @returns {string} - The modified sentence with hyphens replaced with spaces and the first letter of each word capitalized.
606
606
  */
607
607
  export const formatTxType = (txType: string) => {
608
+ if(txType === 'mass') {
609
+ return 'Chain Agnostic Payments'
610
+ }
611
+
608
612
  const finalSentence = txType
609
613
  .replace("-", " ")
610
614
  .replace(/(^\w{1})|(\s+\w{1})/g, (letter) => letter.toUpperCase());