Skip to content

Commit

Permalink
Disable libeci for now
Browse files Browse the repository at this point in the history
Hera ensures ECI conformance
  • Loading branch information
axic committed Nov 15, 2018
1 parent 104b1c7 commit 3f540c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ fn validate_contract(code: &[u8]) -> bool {
}

fn inject_metering(code: &[u8]) -> Result<Vec<u8>, parity_wasm::elements::Error> {
if !validate_contract(code) {
return Err(parity_wasm::elements::Error::Other("Contract doesn't meet ECI/EEI restrictions."));
}
//if !validate_contract(code) {
// return Err(parity_wasm::elements::Error::Other("Contract doesn't meet ECI/EEI restrictions."));
//}

let module = parity_wasm::deserialize_buffer(&code)?;

Expand Down

0 comments on commit 3f540c6

Please sign in to comment.