mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add docs for removing from state in system calls (#13447)
This commit is contained in:
@ -65,6 +65,11 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
// NOTE: Revm currently marks these accounts as "touched" when we do the above transact calls,
|
||||
// and includes them in the result.
|
||||
//
|
||||
// There should be no state changes to these addresses anyways as a result of this system call,
|
||||
// so we can just remove them from the state returned.
|
||||
res.state.remove(&alloy_eips::eip4788::SYSTEM_ADDRESS);
|
||||
res.state.remove(&evm.block().coinbase);
|
||||
|
||||
|
||||
@ -75,6 +75,11 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
// NOTE: Revm currently marks these accounts as "touched" when we do the above transact calls,
|
||||
// and includes them in the result.
|
||||
//
|
||||
// There should be no state changes to these addresses anyways as a result of this system call,
|
||||
// so we can just remove them from the state returned.
|
||||
res.state.remove(&alloy_eips::eip4788::SYSTEM_ADDRESS);
|
||||
res.state.remove(&evm.block().coinbase);
|
||||
|
||||
|
||||
@ -51,7 +51,11 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
// cleanup the state
|
||||
// NOTE: Revm currently marks these accounts as "touched" when we do the above transact calls,
|
||||
// and includes them in the result.
|
||||
//
|
||||
// There should be no state changes to these addresses anyways as a result of this system call,
|
||||
// so we can just remove them from the state returned.
|
||||
res.state.remove(&alloy_eips::eip7002::SYSTEM_ADDRESS);
|
||||
res.state.remove(&evm.block().coinbase);
|
||||
|
||||
|
||||
@ -53,7 +53,11 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
// cleanup the state
|
||||
// NOTE: Revm currently marks these accounts as "touched" when we do the above transact calls,
|
||||
// and includes them in the result.
|
||||
//
|
||||
// There should be no state changes to these addresses anyways as a result of this system call,
|
||||
// so we can just remove them from the state returned.
|
||||
res.state.remove(&alloy_eips::eip7002::SYSTEM_ADDRESS);
|
||||
res.state.remove(&evm.block().coinbase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user