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
+12
View File
@@ -4391,6 +4391,7 @@ dependencies = [
"pallet-timestamp",
"parity-scale-codec",
"primitive-types",
"ripemd160",
"rlp",
"serde",
"sha3",
@@ -5954,6 +5955,17 @@ dependencies = [
"winapi 0.3.8",
]
[[package]]
name = "ripemd160"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251"
dependencies = [
"block-buffer 0.9.0",
"digest 0.9.0",
"opaque-debug 0.3.0",
]
[[package]]
name = "rle-decode-fast"
version = "1.0.1"