mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
- Solidity Upgraded up to v0.8.0 - Fixed and Added eth_chainId - Fix error in TransactionRecipet - Reward halving issue fixed
15 lines
319 B
Solidity
15 lines
319 B
Solidity
pragma solidity ^0.6.0;
|
|
contract Base1
|
|
{
|
|
function foo() virtual public {}
|
|
}
|
|
contract Base2
|
|
{
|
|
function foo() virtual public {}
|
|
}
|
|
contract Inherited is Base1, Base2
|
|
{
|
|
// Derives from multiple bases defining foo(), so we must explicitly
|
|
// override it
|
|
function foo() public override(Base1, Base2) {}
|
|
}
|