Skip to content

Commit

Permalink
Fix test fixture creating (pre executing storage)
Browse files Browse the repository at this point in the history
  • Loading branch information
zilm13 committed Oct 15, 2018
1 parent 9cb18e7 commit 9ba7f37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public Repository getRepository() {

@Override
public Repository getOrigRepository() {
return this.repository;
return this.origRepository;
}

@Override
Expand All @@ -252,6 +252,10 @@ public void setRepository(Repository repository) {
this.repository = repository;
}

public void setOrigRepository(Repository repository) {
this.origRepository = repository.clone();
}

@Override
public int getCallDeep() {
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ private void setStorageToOne(VM vm) {
while (!program.isStopped())
vm.step(program);
invoke.getRepository().commit();
invoke.setOrigRepository(invoke.getRepository());
}

@Test // SSTORE EIP1283
Expand Down

0 comments on commit 9ba7f37

Please sign in to comment.