Skip to content

Commit

Permalink
Remove static tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Trintinalia committed Apr 27, 2023
1 parent c8698eb commit 7c1797c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
import org.apache.tuweni.units.bigints.UInt256;

public class AddTracer implements ModuleTracer {

public static final String ADD_JSON_KEY = "add";
private int stamp = 0;

@Override
public String jsonKey() {
return "add";
return ADD_JSON_KEY;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
*/
package net.consensys.linea.zktracer.specs;

import static net.consensys.linea.zktracer.module.alu.add.AddTracer.ADD_JSON_KEY;

import net.consensys.linea.zktracer.AbstractModuleTracerBySpecTest;
import net.consensys.linea.zktracer.module.ModuleTracer;
import net.consensys.linea.zktracer.module.alu.add.AddTracer;

public class AddTracerBySpecTest extends AbstractModuleTracerBySpecTest {

static ModuleTracer tracer = new AddTracer();

public static Object[][] specs() {
return findSpecFiles(new String[] {tracer.jsonKey()});
return findSpecFiles(new String[] {ADD_JSON_KEY});
}

@Override
protected ModuleTracer getModuleTracer() {
return tracer;
return new AddTracer();
}
}

0 comments on commit 7c1797c

Please sign in to comment.