Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
  • Loading branch information
daniellehrner committed Nov 27, 2024
1 parent 97af121 commit 747cf4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,6 @@ public TransactionProcessingResult processTransaction(
throw new RuntimeException("Code delegation processor is required for 7702 transactions");
}

// if (evmWorldUpdater.parentUpdater().isEmpty()) {
// throw new RuntimeException("Code delegation needs the underlying world state");
// }

// get the underlying world state to commit code delegations without the transaction having
// to succeed
// final EVMWorldUpdater parentUpdater =
// (EVMWorldUpdater) evmWorldUpdater.parentUpdater().get();

final CodeDelegationResult codeDelegationResult =
maybeCodeDelegationProcessor.get().process(evmWorldUpdater, transaction);
warmAddressList.addAll(codeDelegationResult.accessedDelegatorAddresses());
Expand All @@ -363,9 +354,6 @@ public TransactionProcessingResult processTransaction(
(codeDelegationResult.alreadyExistingDelegators()));

evmWorldUpdater.commit();

// authorizations will always be commited independently if the transaction succeeds or not
// parentUpdater.commit();
}

final List<AccessListEntry> accessListEntries = transaction.getAccessList().orElse(List.of());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static ReferenceTestProtocolSchedules create(final StubGenesisConfigOptio
"Prague",
createSchedule(
genesisStub.clone().pragueTime(0)
// .osakaTime(0) // TODO remove this once osaka_devnet_0 ships
.osakaTime(0) // TODO remove this once osaka_devnet_0 ships
)),
Map.entry("Osaka", createSchedule(genesisStub.clone().osakaTime(0))),
Map.entry("Amsterdam", createSchedule(genesisStub.clone().futureEipsTime(0))),
Expand Down

0 comments on commit 747cf4f

Please sign in to comment.