mirror of https://github.com/status-im/evmc.git
Rename some vars: mode -> rev
This commit is contained in:
parent
0bbed896af
commit
c5ae54f6ee
|
@ -48,7 +48,7 @@ static void free_result_output_data(struct evm_result const* result)
|
||||||
|
|
||||||
static struct evm_result execute(struct evm_instance* instance,
|
static struct evm_result execute(struct evm_instance* instance,
|
||||||
struct evm_context* context,
|
struct evm_context* context,
|
||||||
enum evm_revision mode,
|
enum evm_revision rev,
|
||||||
const struct evm_message* msg,
|
const struct evm_message* msg,
|
||||||
const uint8_t* code,
|
const uint8_t* code,
|
||||||
size_t code_size)
|
size_t code_size)
|
||||||
|
@ -56,7 +56,7 @@ static struct evm_result execute(struct evm_instance* instance,
|
||||||
struct evm_result ret = {};
|
struct evm_result ret = {};
|
||||||
if (code_size == 0) {
|
if (code_size == 0) {
|
||||||
// In case of empty code return a fancy error message.
|
// In case of empty code return a fancy error message.
|
||||||
const char* error = mode == EVM_BYZANTIUM ?
|
const char* error = rev == EVM_BYZANTIUM ?
|
||||||
"Welcome to Byzantium!" : "Hello Ethereum!";
|
"Welcome to Byzantium!" : "Hello Ethereum!";
|
||||||
ret.output_data = (const uint8_t*)error;
|
ret.output_data = (const uint8_t*)error;
|
||||||
ret.output_size = strlen(error);
|
ret.output_size = strlen(error);
|
||||||
|
|
Loading…
Reference in New Issue