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.
- package/_cjs/chains/opStack/utils/getSourceHash.js +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/chains/opStack/utils/getSourceHash.js +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/chains/opStack/utils/getSourceHash.ts +1 -1
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -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
|
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]);
|
package/_cjs/errors/version.js
CHANGED
@@ -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
|
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]);
|
package/_esm/errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '0.0.0-main.
|
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.
|
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!
|
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.
|
1
|
+
export const version = '0.0.0-main.20240313T205215'
|
package/package.json
CHANGED