-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add missing functions in abstract contracts
- Loading branch information
Showing
5 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
import {IContractBAbstract} from '../../interfaces/IContractBAbstract.sol'; | ||
import {IContractB2Abstract} from '../../interfaces/IContractB2Abstract.sol'; | ||
|
||
abstract contract ContractBAbstract is IContractBAbstract, IContractB2Abstract { | ||
uint256 public uintVariable; | ||
|
||
constructor(uint256 _uintVariable) { | ||
uintVariable = _uintVariable; | ||
} | ||
|
||
function setVariablesA(uint256 _newValue) public returns (bool _result) { | ||
uintVariable = _newValue; | ||
_result = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
interface IContractB2Abstract { | ||
function undefinedInterfaceFunc2(uint256 _someNumber) external returns (bool _result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
interface IContractBAbstract { | ||
function undefinedInterfaceFunc(uint256 _someNumber) external returns (bool _result); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters