Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Modify test to iterate from 2nd block for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Aug 3, 2018
1 parent 9826fcd commit 89a0550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethcore/src/tests/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ fn test_blockhash_eip210(factory: Factory) {
let mut state = get_temp_state_with_factory(factory);
let contract_address: Address = 0xf0.into();
state.init_code(&contract_address, (*blockhash_contract_code).clone()).unwrap();
for i in 1 .. 257 {
for i in 2 .. 257 {
env_info.number = i.into();
let params = ActionParams {
code_address: contract_address.clone(),
address: contract_address,
sender: SYSTEM_ADDRESS.clone(),
origin: SYSTEM_ADDRESS.clone(),
gas: 100000.into(),
gas: 1000000.into(),
gas_price: 0.into(),
value: ActionValue::Transfer(0.into()),
code: Some(blockhash_contract_code.clone()),
Expand All @@ -77,7 +77,7 @@ fn test_blockhash_eip210(factory: Factory) {
address: Address::new(),
sender: Address::new(),
origin: Address::new(),
gas: 100000.into(),
gas: 1000000.into(),
gas_price: 0.into(),
value: ActionValue::Transfer(0.into()),
code: Some(get_prev_hash_code),
Expand Down

0 comments on commit 89a0550

Please sign in to comment.