Skip to content

Commit

Permalink
Improved test for hash(1026) not being precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccubu committed Nov 14, 2023
1 parent 6d5f1c7 commit 8b7c2bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ownership-chain/runtime/src/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ where
pub fn new() -> Self {
Self(Default::default())
}
pub fn used_addresses() -> [H160; 8] {
[hash(1), hash(2), hash(3), hash(4), hash(5), hash(1025), hash(1026), hash(1027)]
pub fn used_addresses() -> [H160; 7] {
[hash(1), hash(2), hash(3), hash(4), hash(5), hash(1025), hash(1027)]
}
}

Expand Down
1 change: 1 addition & 0 deletions ownership-chain/runtime/src/precompiles/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ fn ethereum_precompiled_addresses_are_precompile() {
assert!(is_precompile(hash(3)).unwrap());
assert!(is_precompile(hash(4)).unwrap());
assert!(is_precompile(hash(5)).unwrap());
assert!(!is_precompile(hash(1026)).unwrap());
assert!(is_precompile(hash(1027)).unwrap());
}

0 comments on commit 8b7c2bd

Please sign in to comment.