Set chain_id in EVMHost

This commit is contained in:
Alex Beregszaszi 2019-11-14 12:00:04 +01:00
parent 6b198a261b
commit 9a124101ba

View File

@ -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;
}