samrataiandbi-cmd/sample-contract
Voir sur GitHubCreate a file for accessing the view functions of the contract
Open
#2 ouverte le 6 oct. 2025
enhancementgood first issuehacktoberfesthacktoberfest-acceptedhacktoberfest2025help wanted
Métriques du dépôt
- Stars
- (0 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Add a new JavaScript file (e.g., readContract.js) that imports the ABI and contract address and interacts with view/pure functions of the smart contract.
Suggestions:
- Use
ethers.Contractto connect with the contract - Call getter or read-only functions (like retrieving stored values, arrays, mappings, etc.)
- Log responses in the console