Skip to content

Commit 6e265af

Browse files
committed
bugc: fix offset comparison type in context test
Cast Format.Program.Instruction offset to number for comparison, since the type is Value (string | number | bigint).
1 parent 44d84fa commit 6e265af

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/bugc/src/evmgen/call-contexts.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ code {
174174
// Invoke JUMP offset should be less than
175175
// return JUMPDEST offset (caller comes first
176176
// in bytecode)
177-
expect(invokeJump.offset).toBeLessThan(returnJumpdest.offset);
177+
expect(Number(invokeJump.offset)).toBeLessThan(
178+
Number(returnJumpdest.offset),
179+
);
178180
});
179181

180182
describe("void function calls", () => {

0 commit comments

Comments
 (0)