Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ private void processCodeDelegation(

MutableAccount authority;
boolean authorityDoesAlreadyExist = false;
if (maybeAuthorityAccount.isEmpty()) {

// we check for empty accounts as well in case we are on a chain that has still leftover empty
// accounts after EIP-7523
if (maybeAuthorityAccount.isEmpty() || maybeAuthorityAccount.get().isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that maybe this change can impact BAL tracking @mirgee ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add optional CI check to know for sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that there can be empty accounts in the trie, not on mainnet, but on other chains, like rollups this might be an issue. This behaviour is consistent with what Geth and Nethermind are doing in case of empty accounts.

// only create an account if nonce is valid
if (codeDelegation.nonce() != 0) {
return;
Expand Down
Loading