@defuse-protocol/crosschain-assetid 1.0.1 → 1.0.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/dist/index.cjs +2 -3
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -76,13 +76,12 @@ function fromUniswapToken(token, caip2slugMap) {
|
|
|
76
76
|
const caip2 = `eip155:${token.chainId}`;
|
|
77
77
|
const chain = caip2slugMap?.[caip2] ?? evmSlugRegistry[caip2];
|
|
78
78
|
if (chain == null) throw new Error(`Unsupported chainId = ${token.chainId}`);
|
|
79
|
-
|
|
79
|
+
return stringify1cs({
|
|
80
80
|
version: "v1",
|
|
81
81
|
chain,
|
|
82
82
|
namespace: "erc20",
|
|
83
83
|
reference: token.address
|
|
84
|
-
};
|
|
85
|
-
return stringify1cs(o);
|
|
84
|
+
});
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -75,13 +75,12 @@ function fromUniswapToken(token, caip2slugMap) {
|
|
|
75
75
|
const caip2 = `eip155:${token.chainId}`;
|
|
76
76
|
const chain = caip2slugMap?.[caip2] ?? evmSlugRegistry[caip2];
|
|
77
77
|
if (chain == null) throw new Error(`Unsupported chainId = ${token.chainId}`);
|
|
78
|
-
|
|
78
|
+
return stringify1cs({
|
|
79
79
|
version: "v1",
|
|
80
80
|
chain,
|
|
81
81
|
namespace: "erc20",
|
|
82
82
|
reference: token.address
|
|
83
|
-
};
|
|
84
|
-
return stringify1cs(o);
|
|
83
|
+
});
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
//#endregion
|