mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some more base fees.
This commit is contained in:
@@ -1854,6 +1854,7 @@ BOOST_AUTO_TEST_CASE(builtins)
|
||||
abi.encodePacked;
|
||||
abi.encodeWithSelector;
|
||||
abi.encodeWithSignature;
|
||||
block.basefee;
|
||||
block.chainid;
|
||||
block.coinbase;
|
||||
block.difficulty;
|
||||
|
||||
@@ -413,6 +413,11 @@ u256 EwasmBuiltinInterpreter::evalEthBuiltin(string const& _fun, vector<uint64_t
|
||||
writeAddress(arg[3], h160(0xcccccc + arg[1]));
|
||||
return 1;
|
||||
}
|
||||
else if (_fun == "getBlockBaseFee")
|
||||
{
|
||||
writeU128(arg[0], m_state.basefee);
|
||||
return 0;
|
||||
}
|
||||
else if (_fun == "getBlockDifficulty")
|
||||
{
|
||||
writeU256(arg[0], m_state.difficulty);
|
||||
|
||||
Reference in New Issue
Block a user