openethereum/src/evm/env.rs

24 lines
341 B
Rust
Raw Normal View History

2015-12-23 13:02:01 +01:00
use util::hash::*;
pub struct Env;
impl Env {
pub fn new() -> Env {
Env
}
pub fn sload(&self, _index: &H256) -> H256 {
2015-12-28 22:37:15 +01:00
println!("sload!: {:?}", _index);
2015-12-28 15:11:05 +01:00
//unimplemented!();
H256::new()
2015-12-23 13:02:01 +01:00
}
pub fn sstore(&self, _index: &H256, _value: &H256) {
2015-12-28 22:37:15 +01:00
println!("sstore!: {:?} , {:?}", _index, _value);
2015-12-28 15:11:05 +01:00
//unimplemented!();
2015-12-23 13:02:01 +01:00
}
}