viem 0.0.0-main.20240313T205112 → 0.0.0-main.20240313T205215

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.
@@ -10,7 +10,7 @@ const sourceHashDomainMap = {
10
10
  l1InfoDeposit: 1,
11
11
  };
12
12
  function getSourceHash({ domain, l1LogIndex, l1BlockHash, sequenceNumber, }) {
13
- const marker = (0, toHex_js_1.toHex)(l1LogIndex || sequenceNumber);
13
+ const marker = (0, toHex_js_1.toHex)(l1LogIndex ?? sequenceNumber);
14
14
  const input = (0, concat_js_1.concat)([l1BlockHash, (0, pad_js_1.pad)(marker, { size: 32 })]);
15
15
  const depositIdHash = (0, keccak256_js_1.keccak256)(input);
16
16
  const domainHex = (0, toHex_js_1.toHex)(sourceHashDomainMap[domain]);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.0.0-main.20240313T205112';
4
+ exports.version = '0.0.0-main.20240313T205215';
5
5
  //# sourceMappingURL=version.js.map
@@ -8,7 +8,7 @@ const sourceHashDomainMap = {
8
8
  l1InfoDeposit: 1,
9
9
  };
10
10
  export function getSourceHash({ domain, l1LogIndex, l1BlockHash, sequenceNumber, }) {
11
- const marker = toHex(l1LogIndex || sequenceNumber);
11
+ const marker = toHex(l1LogIndex ?? sequenceNumber);
12
12
  const input = concat([l1BlockHash, pad(marker, { size: 32 })]);
13
13
  const depositIdHash = keccak256(input);
14
14
  const domainHex = toHex(sourceHashDomainMap[domain]);
@@ -1,2 +1,2 @@
1
- export const version = '0.0.0-main.20240313T205112';
1
+ export const version = '0.0.0-main.20240313T205215';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const version = "0.0.0-main.20240313T205112";
1
+ export declare const version = "0.0.0-main.20240313T205215";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -52,7 +52,7 @@ export function getSourceHash({
52
52
  l1BlockHash,
53
53
  sequenceNumber,
54
54
  }: GetSourceHashParameters) {
55
- const marker = toHex(l1LogIndex! || sequenceNumber!)
55
+ const marker = toHex(l1LogIndex! ?? sequenceNumber!)
56
56
  const input = concat([l1BlockHash, pad(marker, { size: 32 })])
57
57
  const depositIdHash = keccak256(input)
58
58
  const domainHex = toHex(sourceHashDomainMap[domain])
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '0.0.0-main.20240313T205112'
1
+ export const version = '0.0.0-main.20240313T205215'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "0.0.0-main.20240313T205112",
4
+ "version": "0.0.0-main.20240313T205215",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",