-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
89 additions
and
7 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
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
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
// solc v0.4.21 will not compile using instrumentation technique for viaIR | ||
const skipFiles = process.env.VIA_IR ? ["ContractD1.sol"] : []; | ||
|
||
module.exports = { | ||
"silent": false, | ||
"istanbulReporter": [ "json-summary", "text"] | ||
"istanbulReporter": [ "json-summary", "text"], | ||
"skipFiles": skipFiles | ||
} |
15 changes: 15 additions & 0 deletions
15
test/sources/projects/hardhat-compile-config/contracts/ContractD1.sol
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,15 @@ | ||
pragma solidity 0.4.21; | ||
|
||
|
||
contract ContractD { | ||
uint x; | ||
|
||
function sendFn() public { | ||
x = 5; | ||
} | ||
|
||
function callFn() public pure returns (uint){ | ||
uint y = 5; | ||
return y; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
test/sources/projects/hardhat-compile-config/test/contractd1.js
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 @@ | ||
const ContractD = artifacts.require("ContractD"); | ||
|
||
contract("contractd", function(accounts) { | ||
let instance; | ||
|
||
before(async () => instance = await ContractD.new()) | ||
|
||
it('sends', async function(){ | ||
await instance.sendFn(); | ||
}); | ||
|
||
it('calls', async function(){ | ||
await instance.callFn(); | ||
}) | ||
|
||
it('sends', async function(){ | ||
await instance.sendFn(); | ||
}); | ||
|
||
}); |
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