Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions runtime/crab/src/pallets/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ where
Self(Default::default())
}

pub fn used_addresses() -> [sp_core::H160; 15] {
pub fn used_addresses() -> [sp_core::H160; 14] {
[
addr(1),
addr(2),
Expand All @@ -66,7 +66,7 @@ where
addr(1026),
addr(1536),
addr(1537),
addr(2048),
// addr(2048),
]
}
}
Expand Down Expand Up @@ -118,8 +118,8 @@ where
a if a == addr(1537) =>
Some(<darwinia_precompile_staking::Staking<Runtime>>::execute(handle)),
// [2048..) reserved for the experimental precompiles.
a if a == addr(2048) =>
Some(<darwinia_precompile_bls12_381::BLS12381<Runtime>>::execute(handle)),
// a if a == addr(2048) =>
// Some(<darwinia_precompile_bls12_381::BLS12381<Runtime>>::execute(handle)),
_ => None,
}
}
Expand Down
8 changes: 4 additions & 4 deletions runtime/darwinia/src/pallets/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ where
Self(Default::default())
}

pub fn used_addresses() -> [sp_core::H160; 15] {
pub fn used_addresses() -> [sp_core::H160; 14] {
[
addr(1),
addr(2),
Expand All @@ -66,7 +66,7 @@ where
addr(1026),
addr(1536),
addr(1537),
addr(2048),
// addr(2048),
]
}
}
Expand Down Expand Up @@ -118,8 +118,8 @@ where
a if a == addr(1537) =>
Some(<darwinia_precompile_staking::Staking<Runtime>>::execute(handle)),
// [2048..) reserved for the experimental precompiles.
a if a == addr(2048) =>
Some(<darwinia_precompile_bls12_381::BLS12381<Runtime>>::execute(handle)),
// a if a == addr(2048) =>
// Some(<darwinia_precompile_bls12_381::BLS12381<Runtime>>::execute(handle)),
_ => None,
}
}
Expand Down