Skip to content

Commit 42fe54a

Browse files
amkChaDavePearce
andauthored
feat: define trace from the config (#2008)
* feat: define trace from the config * update go-corset to v1.1.7 This updates go-corset to the latest version which now includes additional signatures for open() and addMetadata() into the generated interface. --------- Co-authored-by: DavePearce <[email protected]>
1 parent c1e582d commit 42fe54a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/actions/setup-go-corset/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ runs:
99

1010
- name: Install Go Corset
1111
shell: bash
12-
run: go install github.com/consensys/go-corset/cmd/[email protected].6
12+
run: go install github.com/consensys/go-corset/cmd/[email protected].7

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ reference-tests/src/test/java/net/consensys/linea/generated/*
3737
arithmetization/bin/
3838
acceptance-tests/bin/
3939
reference-tests/bin/
40-
**/*Trace.java
40+
**/*Trace*.java
4141
**/*GlobalConstants.java

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
public class ZkTracer implements ConflationAwareOperationTracer {
5353

5454
/** Construct trace object. */
55-
private final TraceLondon trace = new TraceLondon(); // FOR NOW
55+
private final Trace trace;
5656

5757
@Getter private final Hub hub;
5858
private final Optional<DebugMode> debugMode;
@@ -93,6 +93,11 @@ public ZkTracer(ChainConfig chain) {
9393
case CANCUN -> new CancunHub(chain);
9494
case PRAGUE -> new PragueHub(chain);
9595
};
96+
this.trace =
97+
switch (chain.fork) {
98+
default -> new TraceLondon();
99+
// case SHANGHAI -> new TraceShanghai();
100+
};
96101
final DebugMode.PinLevel debugLevel = new DebugMode.PinLevel();
97102
this.debugMode =
98103
debugLevel.none() ? Optional.empty() : Optional.of(new DebugMode(debugLevel, this.hub));

0 commit comments

Comments
 (0)