Skip to content

Commit

Permalink
Added test cases for standard EVM precompiles. (#3628) WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Nov 18, 2020
1 parent f50f059 commit 6191c78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-utils/testlib/src/standard_evm_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,8 @@ pub fn test_sub_evm(node: impl Node) {
.unwrap();
assert_eq!(node_user.view_account(&"sub.evm".to_string()).unwrap().amount, 10u128.pow(27));
}

pub fn test_evm_call_istanbul_precompiles(node: impl Node) {
let node_user = node.user();
println!("test_evm_call_precompiles") // TODO
}
7 changes: 7 additions & 0 deletions tests/test_cases_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,11 @@ mod test {
let node = create_runtime_node();
test_sub_evm(node);
}

#[cfg(feature = "protocol_feature_evm")]
#[test]
fn test_evm_call_istanbul_precompiles_runtime() {
let node = create_runtime_node();
test_evm_call_istanbul_precompiles(node);
}
}

0 comments on commit 6191c78

Please sign in to comment.