-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add splitTestsCompilation solidity setting (7): Typechain updates
#8134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3322ffd
3ee06b2
3997e74
5c3dedd
a130e61
a78068c
0eff216
972369b
b80aa4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| contract A { | ||
| function getMessage() external pure returns (string memory) { | ||
| return "Hello from A contract!"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export default {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| contract A { | ||
| function getMessage() external pure returns (string memory) { | ||
| return "Hello from A contract!"; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import {A} from "./A.sol"; | ||
|
|
||
| contract ATest { | ||
| A a; | ||
|
|
||
| function setUp() public { | ||
| a = new A(); | ||
| } | ||
|
|
||
| function test_Assertion() public view { | ||
| require(1 == 1, "test assertion"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import type { HardhatUserConfig } from "hardhat/config"; | ||
|
|
||
| // eslint-disable-next-line import/no-relative-packages -- allow in fixture projects | ||
| import hardhatTypechain from "../../../src/index.js"; | ||
|
|
||
| const config: HardhatUserConfig = { | ||
| solidity: { | ||
| version: "0.8.28", | ||
| splitTestsCompilation: false, | ||
| }, | ||
| plugins: [hardhatTypechain], | ||
| }; | ||
|
|
||
| export default config; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "hardhat-project", | ||
| "private": true, | ||
| "type": "module" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| contract BTest { | ||
| function test_Assertion() public view { | ||
| require(1 == 1, "test assertion"); | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.