-
Notifications
You must be signed in to change notification settings - Fork 408
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
feat: test improvements #352
Merged
Merged
Conversation
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
Test improvements improvements
TateB
requested review from
Arachnid and
jefflau
and removed request for
Arachnid
June 25, 2024 00:48
Arachnid
approved these changes
Jul 4, 2024
} from 'viem' | ||
import { dnsEncodeName } from '../../test/fixtures/dnsEncodeName.js' | ||
|
||
const multicallAddress = '0xcA11bde05977b3631167028862bE2a173976CA11' |
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.
A comment stating where this comes from would be helpful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
changes:
ethereum-waffle
, replaced with@ensdomains/hardhat-chai-matchers-viem
for fully typed test matchersbeforeEach
viem.deploy
function [1]deployContract
for devnetdeploy
for live networksnote [1]:
using
deploy
from hardhat-deploy on a devnet deploy is very slow, which i think is related to ethers provider polling parameters for a receipt (it becomes apparent past theset_tlds
deploy script). this is why the usage is switched over for devnet to just use viem'sdeployContract
, but still saves the deployment into hardhat-deploy's deployment manager which allows it to easily be accessed later. live network deploys still usedeploy
, but speed isn't relevant for them.