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