Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Add contract that inherits from stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Oct 9, 2018
1 parent 012f9a4 commit 9476412
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pragma solidity ^0.4.24;

contract Parent {
function extendsParent() public pure returns (bool) {
return true;
}
}
4 changes: 3 additions & 1 deletion tests/cli-app/files/Samples.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
pragma solidity ^0.4.24;

contract Foo {
import "mock-stdlib/contracts/Parent.sol";

contract Foo is Parent {
function say() pure returns(string) {
return "Foo";
}
Expand Down
4 changes: 3 additions & 1 deletion tests/cli-app/files/SamplesV2.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
pragma solidity ^0.4.24;

contract Foo {
import "mock-stdlib/contracts/Parent.sol";

contract Foo is Parent {
function say() pure returns(string) {
return "FooV2";
}
Expand Down

0 comments on commit 9476412

Please sign in to comment.