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

Update dependencies and scripts. Also added a test file. #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

farid-moradi
Copy link

Pull Request Overview

Started by updating dependencies in the project:

  • Removed all dependencies except for hardhat and dotenv from package.json.
  • Executed npm prune and npm install.

Then, upgraded the dependencies and introduced a new development dependency:

  • npm install --save-dev @nomicfoundation/hardhat-toolbox.

Major API Changes

  • Obtained contract addresses using contractObject.target instead of contractObject.address.
  • Changed contract deployment approach:
    • Used deployContract instead of getContractFactory.
    • Replaced .deployed() with waitForDeployment for deployment completion.
    • Updated helper functions usage: No longer need ethers.utils for functions like parseEther and formatEther.

Solidity Contract Compatibility

No necessary changes were required for the Solidity contract between versions "0.8.4" (the original compiler version in the repository) and "0.8.24".

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.

1 participant