Skip to content
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

Test contract & mock LINK dependencies #2

Merged
merged 1 commit into from Jan 21, 2022
Merged

Test contract & mock LINK dependencies #2

merged 1 commit into from Jan 21, 2022

Conversation

LionelB5
Copy link
Owner

Adds some basic tests that utilise mocks to mock out the
Chainlink VRF. Also sets up test to environment to contain
the LINK contract.

Some aspects of the contract are yet to be tested.

The mocking of the Chainlink VRF and creation of the LINK
token contract is also done when spinning up local environment.
This is useful because in a local environment, we don't have access
to an actual Chainlink oracle, nor does the LINK token contract
come installed in our local environment.

To assist in achieving replicable deployments and easier to
write as well as speedier tests, switch to using the
hardhat-deploy plugin.

Adds some basic tests that utilise mocks to mock out the
Chainlink VRF. Also sets up test to environment to contain
the LINK contract.

Some aspects of the contract are yet to be tested.

The mocking of the Chainlink VRF and creation of the LINK
token contract is also done when spinning up local environment.
This is useful because in a local environment, we don't have access
to an actual Chainlink oracle, nor does the LINK token contract
come installed in our local environment.

To assist in achieving replicable deployments and easier to
write as well as speedier tests, switch to using the
`hardhat-deploy` plugin.
@LionelB5 LionelB5 merged commit b60b1c4 into main Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant