Skip to content

Commit

Permalink
delete add conflict precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
harryliisme3 authored and shaorongqiang committed Jul 6, 2023
1 parent a0cdaaa commit 3d12059
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions src/components/contracts/modules/evm/precompile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,6 @@ where
a if a == H160::from_low_u64_be(Modexp::contract_id()) => {
Some(Modexp::execute(input, target_gas, context, ctx))
}
// Non-Frontier specific nor Ethereum precompiles :
a if a == H160::from_low_u64_be(ECRecoverPublicKey::contract_id()) => {
Some(ECRecoverPublicKey::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Sha3FIPS256::contract_id()) => {
Some(Sha3FIPS256::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Sha3FIPS512::contract_id()) => {
Some(Sha3FIPS512::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(FRC20::<C>::contract_id()) => {
Some(FRC20::<C>::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Anemoi::contract_id()) => {
Some(Anemoi::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Blake2F::contract_id()) => {
Some(Blake2F::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Bn128Add::contract_id()) => {
Some(Bn128Add::execute(input, target_gas, context, ctx))
}
Expand All @@ -90,6 +71,15 @@ where
a if a == H160::from_low_u64_be(Bn128Pairing::contract_id()) => {
Some(Bn128Pairing::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Blake2F::contract_id()) => {
Some(Blake2F::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(FRC20::<C>::contract_id()) => {
Some(FRC20::<C>::execute(input, target_gas, context, ctx))
}
a if a == H160::from_low_u64_be(Anemoi::contract_id()) => {
Some(Anemoi::execute(input, target_gas, context, ctx))
}
//a if a == H160::from_low_u64_be(EthPairing::contract_id()) => {
// Some(EthPairing::execute(input, target_gas, context, ctx))
//}
Expand Down

0 comments on commit 3d12059

Please sign in to comment.