-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NDEV-2505 Fix EXTHASHCODE #253
Conversation
3c99bd3
to
5b348e8
Compare
@anton-lisanin is this more in line with what you were thinking of? |
It may be good idea to move this to lower level here - https://github.com/neonlabsorg/neon-evm/blob/develop/evm_loader/program/src/evm/opcode.rs#L651 And remove everything related to codehash from executor state and backend In #251 @s-medvedev added an another Executor State and now both of them would need the same codehash logic. |
I was thinking if we could we use a trait default fn implementation? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments. I also added some unit tests to validate my suggestions from comments here.
@anton-lisanin I believe we should treat for action in &self.actions {
if let Action::EvmSetCode { address, code, .. } = action {
if &from_address == address {
return Ok(<something>);
}
}
} but it would also create a And what should |
@andreisilviudragnea |
@anton-lisanin While checking the go-ethereum implementation of
Should |
* Remove unused AccountStorage::code_hash method * Replace Buffer::buffer_is_empty with [T]::is_empty * Rename from_address to address (consistent with trait) * Rename buffer to code * Inline data_account_exists method * Remove TODOs * Reformat * Add test_keccak_hash_empty_slice * Add Buffer::is_empty tests * Use early return to simplify code flow
94a700d
to
faa8db4
Compare
Added `DatabaseExt` which implements functions that can be implemented in terms of `Database`.
faa8db4
to
43ddf36
Compare
@anton-lisanin @andreisilviudragnea I think this PR is in a mergeable state right now. If you can find the time, I'd like to wrap this up. |
No. Transferring Neons to the precompile address is valid usecase |
The maybe_async::test predicate does not work with `cargo test-sbf` right now anyway.
Dapps reportCost report for "Uniswap V3" dApp
Cost report for "Aave" dApp
Cost report for "Saddle Finance" dApp
|
No description provided.