mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Set chain_id in EVMHost
This commit is contained in:
parent
6b198a261b
commit
9a124101ba
@ -227,6 +227,8 @@ evmc_tx_context EVMHost::get_tx_context() noexcept
|
|||||||
ctx.block_gas_limit = 20000000;
|
ctx.block_gas_limit = 20000000;
|
||||||
ctx.tx_gas_price = convertToEVMC(u256("3000000000"));
|
ctx.tx_gas_price = convertToEVMC(u256("3000000000"));
|
||||||
ctx.tx_origin = convertToEVMC(Address("0x9292929292929292929292929292929292929292"));
|
ctx.tx_origin = convertToEVMC(Address("0x9292929292929292929292929292929292929292"));
|
||||||
|
// Mainnet according to EIP-155
|
||||||
|
ctx.chain_id = convertToEVMC(u256(1));
|
||||||
return ctx;
|
return ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user