-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Aniket-Engg/fix/import
import supported, fixes #12
- Loading branch information
Showing
14 changed files
with
1,717 additions
and
15 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 @@ | ||
test/node_modules |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pragma solidity ^0.5.6; | ||
|
||
import "./Sample.sol"; | ||
|
||
contract SampleWithImport is Sample{ | ||
|
||
function increment(uint _n) public pure returns (uint) { | ||
return _n++; | ||
} | ||
} |
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,20 @@ | ||
pragma solidity ^0.5.6; | ||
|
||
contract Sample { | ||
uint public n; | ||
|
||
function set(uint _n) public returns (uint) { | ||
n = _n; | ||
} | ||
|
||
function get() public view returns (uint) { | ||
return n; | ||
} | ||
} | ||
|
||
contract SampleWithImport is Sample{ | ||
|
||
function increment(uint _n) public pure returns (uint) { | ||
return _n++; | ||
} | ||
} |
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,13 @@ | ||
pragma solidity ^0.5.7; | ||
|
||
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol"; | ||
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol"; | ||
|
||
contract SampleWithNodeModulesImport is ERC721Full, ERC721Mintable { | ||
constructor() ERC721Full("TEST721", "T721") public { | ||
} | ||
|
||
function setTokenURI(uint256 tokenId, string memory uri) public { | ||
_setTokenURI(tokenId, uri); | ||
} | ||
} |
Oops, something went wrong.