Skip to content

Commit fe38445

Browse files
committed
fix test
1 parent a34dd04 commit fe38445

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/main/java/org/tron/common/runtime/vm/program/Program.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,9 @@ public long getVmStartInUs() {
15481548
}
15491549

15501550
public boolean isHardFork(){
1551+
if(byTestingSuite()){
1552+
return true;
1553+
}
15511554
Manager manager = contractState.getDbManager();
15521555
return manager.passVersion(ForkBlockVersionConsts.ENERGY_LIMIT);
15531556
}

‎src/main/java/org/tron/common/runtime/vm/program/invoke/ProgramInvokeMockImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public BlockCapsule getBlockByNum(int index) {
241241

242242
@Override
243243
public boolean byTestingSuite() {
244-
return false;
244+
return true;
245245
}
246246

247247
@Override

0 commit comments

Comments
 (0)