From 9a124101baf945c344604fbe3cf3da40882d0b70 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 14 Nov 2019 12:00:04 +0100 Subject: [PATCH] Set chain_id in EVMHost --- test/EVMHost.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/EVMHost.cpp b/test/EVMHost.cpp index 05bca2014..d2852614e 100644 --- a/test/EVMHost.cpp +++ b/test/EVMHost.cpp @@ -227,6 +227,8 @@ evmc_tx_context EVMHost::get_tx_context() noexcept ctx.block_gas_limit = 20000000; ctx.tx_gas_price = convertToEVMC(u256("3000000000")); ctx.tx_origin = convertToEVMC(Address("0x9292929292929292929292929292929292929292")); + // Mainnet according to EIP-155 + ctx.chain_id = convertToEVMC(u256(1)); return ctx; }