We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 335e2d9 commit 9bee750Copy full SHA for 9bee750
core/src/memory.rs
@@ -141,8 +141,12 @@ impl Memory {
141
len: U256,
142
data: &[u8],
143
) -> Result<(), ExitFatal> {
144
+ // Needed to pass ethereum test defined in
145
+ // https://github.com/ethereum/tests/commit/17f7e7a6c64bb878c1b6af9dc8371b46c133e46d
146
+ // (regardless of other inputs, a zero-length copy is defined to be a no-op).
147
+ // TODO: refactor `set` and `copy_large` (see
148
+ // https://github.com/rust-blockchain/evm/pull/40#discussion_r677180794)
149
if len.is_zero() {
- // a zero-length copy is defined to be a no-op
150
return Ok(());
151
}
152
0 commit comments