Merge pull request #315 from ethereum/rust-precompiles

rust: add support for the precompiles capability
This commit is contained in:
Alex Beregszaszi 2019-06-06 10:40:07 +01:00 committed by GitHub
commit 199140cb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -166,8 +166,9 @@ impl VMMetaData {
let mut ret: u32 = 0;
for capability in capabilities_list_pruned.split(",") {
match capability {
"ewasm" => ret |= 0x1 << 1,
"evm" => ret |= 0x1,
"evm" => ret |= 1,
"ewasm" => ret |= 1 << 1,
"precompiles" => ret |= 1 << 2,
_ => panic!("Invalid capability specified."),
}
}