pallet-evm: add builtin support for the four basic Ethereum precompiles (#6743)

* pallet-evm: add builtin support for the four basic Ethereum precompiles

* linear_cost -> ensure_linear_cost to directly return OutOfGas error
This commit is contained in:
Wei Tang
2020-07-30 15:52:16 +02:00
committed by GitHub
parent 814911f414
commit 9a672c4e97
4 changed files with 113 additions and 2 deletions
+1 -1
View File
@@ -21,8 +21,8 @@
#![cfg_attr(not(feature = "std"), no_std)]
mod backend;
mod precompiles;
mod tests;
pub mod precompiles;
pub use crate::precompiles::{Precompile, Precompiles};
pub use crate::backend::{Account, Log, Vicinity, Backend};