mirror of https://github.com/status-im/evmc.git
rust: add support for the precompiles capability
This commit is contained in:
parent
1b6158349b
commit
fbba2538e1
|
@ -166,8 +166,9 @@ impl VMMetaData {
|
||||||
let mut ret: u32 = 0;
|
let mut ret: u32 = 0;
|
||||||
for capability in capabilities_list_pruned.split(",") {
|
for capability in capabilities_list_pruned.split(",") {
|
||||||
match capability {
|
match capability {
|
||||||
"ewasm" => ret |= 0x1 << 1,
|
"evm" => ret |= 1,
|
||||||
"evm" => ret |= 0x1,
|
"ewasm" => ret |= 1 << 1,
|
||||||
|
"precompiles" => ret |= 1 << 2,
|
||||||
_ => panic!("Invalid capability specified."),
|
_ => panic!("Invalid capability specified."),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue