ethereum: Fix constant name warning
@@ -394,7 +394,7 @@ where
// 0xfe is the "designated bad instruction" of the EVM, and Solidity
// uses it for asserts.
- const PARITY_0xFE: &str = "Bad instruction fe";
+ const PARITY_BAD_INSTRUCTION_FE: &str = "Bad instruction fe";
const GANACHE_VM_EXECUTION_ERROR: i64 = -32000;
const GANACHE_REVERT_MESSAGE: &str =
"VM Exception while processing transaction: revert";
@@ -429,10 +429,10 @@ where
match rpc_error.data.as_ref().and_then(|d| d.as_str()) {
Some(data)
if data.starts_with(PARITY_REVERT_PREFIX)
- || data == PARITY_0xFE =>
+ || data == PARITY_BAD_INSTRUCTION_FE =>
{
- let reason = if data == PARITY_0xFE {
- PARITY_0xFE.to_owned()
+ let reason = if data == PARITY_BAD_INSTRUCTION_FE {
+ PARITY_BAD_INSTRUCTION_FE.to_owned()
} else {
let payload =
data.trim_start_matches(PARITY_REVERT_PREFIX);
