@ensdomains/ethers-patch-v5 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
@@ -154,7 +154,7 @@ async function fetchAddress(resolver, coinType) {
154
154
  "addr(bytes32,uint256)",
155
155
  coinType
156
156
  );
157
- return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42) : (0, import_utils.getAddress)(a) : a;
157
+ return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42, "0") : (0, import_utils.getAddress)(a) : a;
158
158
  }
159
159
  async function callResolver(resolver, fragment, ...args) {
160
160
  const f = ABI.getFunction(fragment);
package/dist/index.js CHANGED
@@ -150,7 +150,7 @@ async function fetchAddress(resolver, coinType) {
150
150
  "addr(bytes32,uint256)",
151
151
  coinType
152
152
  );
153
- return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42) : getAddress(a) : a;
153
+ return isEVMCoinType(coinType) ? a === "0x" ? a.padEnd(42, "0") : getAddress(a) : a;
154
154
  }
155
155
  async function callResolver(resolver, fragment, ...args) {
156
156
  const f = ABI.getFunction(fragment);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensdomains/ethers-patch-v5",
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",