@ensdomains/ethers-patch-v6 0.0.3 → 0.0.4

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 CHANGED
@@ -128,7 +128,7 @@ async function fetchAddress(resolver, coinType) {
128
128
  "addr(bytes32,uint256)",
129
129
  coinType
130
130
  );
131
- return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42) : (0, import_ethers.getAddress)(a) : a;
131
+ return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42, "0") : (0, import_ethers.getAddress)(a) : a;
132
132
  }
133
133
  async function callResolver(resolver, fragment, ...args) {
134
134
  const f = ABI.getFunction(fragment);
package/dist/index.js CHANGED
@@ -124,7 +124,7 @@ async function fetchAddress(resolver, coinType) {
124
124
  "addr(bytes32,uint256)",
125
125
  coinType
126
126
  );
127
- return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42) : getAddress(a) : a;
127
+ return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42, "0") : getAddress(a) : a;
128
128
  }
129
129
  async function callResolver(resolver, fragment, ...args) {
130
130
  const f = ABI.getFunction(fragment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensdomains/ethers-patch-v6",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",