-
Notifications
You must be signed in to change notification settings - Fork 51
Feat/testing implementation #2212
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
base: dev
Are you sure you want to change the base?
Changes from all commits
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||||||
| import { Contract } from "ethers"; | ||||||||||
| import { HardhatRuntimeEnvironment } from "hardhat/types"; | ||||||||||
| import { getContractOrDeploy } from "./getContractOrDeploy"; | ||||||||||
| import { isMainnet } from "."; | ||||||||||
| import { isLocalhost, isMainnet } from "."; | ||||||||||
|
|
||||||||||
| export const deployERC20AndFaucet = async ( | ||||||||||
| hre: HardhatRuntimeEnvironment, | ||||||||||
|
|
@@ -21,10 +21,14 @@ export const deployERC20 = async ( | |||||||||
| deployer: string, | ||||||||||
| ticker: string | ||||||||||
| ): Promise<Contract> => { | ||||||||||
| // locally the ERC20contract lacks `increaseAllowance` function, | ||||||||||
| // so we swap it with an updated contract to allow local development | ||||||||||
|
Comment on lines
+24
to
+25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo in comment. The comment contains a typo: "ERC20contract" should be "ERC20 contract". 🔎 Proposed fix- // locally the ERC20contract lacks `increaseAllowance` function,
+ // locally the ERC20 contract lacks `increaseAllowance` function,
// so we swap it with an updated contract to allow local development📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| const contractName = ticker === "PNK" && isLocalhost(hre.network) ? "PinakionV2Local" : "TestERC20"; | ||||||||||
| const args = ticker === "PNK" && isLocalhost(hre.network) ? [] : [ticker, ticker]; | ||||||||||
| return await getContractOrDeploy(hre, ticker, { | ||||||||||
| from: deployer, | ||||||||||
| contract: "TestERC20", | ||||||||||
| args: [ticker, ticker], | ||||||||||
| contract: contractName, | ||||||||||
| args: args, | ||||||||||
| log: true, | ||||||||||
| }); | ||||||||||
| }; | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix heading hierarchy and link fragment.
Static analysis flagged two issues:
#####shell-1---local-rpc-with-contracts-deployedappears malformed (uses 5 hashes instead of matching the actual heading format)##(h2) directly to####(h4), skipping h3🔎 Proposed fixes
-#### Step 2: Start the Docker compose stack
+### Step 2: Start the Docker compose stack
-This should run a Blockscout locally at http://localhost.
+This should run a Blockscout locally at http://localhost.
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
225-225: Link fragments should be valid
(MD051, link-fragments)
227-227: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4
(MD001, heading-increment)
239-239: Bare URL used
(MD034, no-bare-urls)
🤖 Prompt for AI Agents