Skip to content

Commit 63cf7f0

Browse files
committed
feat: add shanghai switch case for trace at ZkTrace level
1 parent 2129ef6 commit 63cf7f0

File tree

1 file changed

+4
-2
lines changed
  • arithmetization/src/main/java/net/consensys/linea/zktracer

1 file changed

+4
-2
lines changed

arithmetization/src/main/java/net/consensys/linea/zktracer/ZkTracer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ public ZkTracer(ChainConfig chain) {
9696
};
9797
this.trace =
9898
switch (chain.fork) {
99-
default -> new TraceLondon();
100-
// case SHANGHAI -> new TraceShanghai();
99+
case LONDON -> new TraceLondon();
100+
case SHANGHAI -> new TraceShanghai();
101+
default -> throw new IllegalArgumentException(
102+
"Fork config can only be LONDON or SHANGHAI for now");
101103
};
102104
final DebugMode.PinLevel debugLevel = new DebugMode.PinLevel();
103105
this.debugMode =

0 commit comments

Comments
 (0)