viem 0.2.0 → 0.2.1

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.
@@ -1,20 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkYDNKDSSTjs = require('./chunk-YDNKDSST.js');
4
+ var _chunk2DDJFGFEjs = require('./chunk-2DDJFGFE.js');
5
5
 
6
6
  // src/accounts/toAccount.ts
7
7
  function toAccount(source) {
8
8
  if (typeof source === "string") {
9
- if (!_chunkYDNKDSSTjs.isAddress.call(void 0, source))
10
- throw new (0, _chunkYDNKDSSTjs.InvalidAddressError)({ address: source });
9
+ if (!_chunk2DDJFGFEjs.isAddress.call(void 0, source))
10
+ throw new (0, _chunk2DDJFGFEjs.InvalidAddressError)({ address: source });
11
11
  return {
12
12
  address: source,
13
13
  type: "json-rpc"
14
14
  };
15
15
  }
16
- if (!_chunkYDNKDSSTjs.isAddress.call(void 0, source.address))
17
- throw new (0, _chunkYDNKDSSTjs.InvalidAddressError)({ address: source.address });
16
+ if (!_chunk2DDJFGFEjs.isAddress.call(void 0, source.address))
17
+ throw new (0, _chunk2DDJFGFEjs.InvalidAddressError)({ address: source.address });
18
18
  return {
19
19
  address: source.address,
20
20
  signMessage: source.signMessage,
@@ -28,4 +28,4 @@ function toAccount(source) {
28
28
 
29
29
 
30
30
  exports.toAccount = toAccount;
31
- //# sourceMappingURL=chunk-63WKWOMO.js.map
31
+ //# sourceMappingURL=chunk-4EJIKB23.js.map
@@ -20,9 +20,9 @@ import "abitype";
20
20
  var package_default = {
21
21
  name: "viem",
22
22
  description: "TypeScript Interface for Ethereum",
23
- version: "0.2.0",
23
+ version: "0.2.1",
24
24
  scripts: {
25
- anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
25
+ anvil: "dotenv -- sh -c 'anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME'",
26
26
  bench: "vitest bench --no-threads",
27
27
  "bench:ci": "CI=true vitest bench --no-threads",
28
28
  build: "tsup && size-limit",
@@ -175,6 +175,7 @@ var package_default = {
175
175
  bun: "^0.5.5",
176
176
  bundlewatch: "^0.3.3",
177
177
  dedent: "^0.7.0",
178
+ "dotenv-cli": "^7.1.0",
178
179
  ethers: "^5.7.2",
179
180
  "ethers@6": "npm:ethers@^6.0.2",
180
181
  execa: "^6.1.0",
@@ -7219,4 +7220,4 @@ export {
7219
7220
  writeContract,
7220
7221
  getContract
7221
7222
  };
7222
- //# sourceMappingURL=chunk-FSIBCQFR.mjs.map
7223
+ //# sourceMappingURL=chunk-LEU2ZGMI.mjs.map