diff --git a/src/encoding/knockout.ts b/src/encoding/knockout.ts index f2a878e..5d589e0 100644 --- a/src/encoding/knockout.ts +++ b/src/encoding/knockout.ts @@ -87,7 +87,7 @@ function packKnockoutLink (pivotTime: BigNumberish, mileage: BigNumberish, commitEntropy: bigint): bigint { // Converted BigInt code const packed = (BigInt(pivotTime) << BigInt(64)) + BigInt(mileage); - return commitEntropy + BigInt(packed); + return (commitEntropy << BigInt(96)) + BigInt(packed); } const KNOCKOUT_ARG_TYPES = [