Skip to content

Commit

Permalink
Add comment to memory.rs change
Browse files Browse the repository at this point in the history
  • Loading branch information
birchmd committed Jul 28, 2021
1 parent 335e2d9 commit 9bee750
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ impl Memory {
len: U256,
data: &[u8],
) -> Result<(), ExitFatal> {
// Needed to pass ethereum test defined in
// https://github.com/ethereum/tests/commit/17f7e7a6c64bb878c1b6af9dc8371b46c133e46d
// (regardless of other inputs, a zero-length copy is defined to be a no-op).
// TODO: refactor `set` and `copy_large` (see
// https://github.com/rust-blockchain/evm/pull/40#discussion_r677180794)
if len.is_zero() {
// a zero-length copy is defined to be a no-op
return Ok(());
}

Expand Down

0 comments on commit 9bee750

Please sign in to comment.