Git Product home page Git Product logo

scm-starter's Introduction

Project

Module 2 of Eth-Avax course by metacrafters

Description

Adding functionalities in assessment.sol and interact with smart contract using the frontend.

Frontend UI

if metamask or any other crypto wallet is not installed: image

Otherwise image

image

Execution:

  * First fork the project and clone it.
  * In hardhat, first use the sepolia testnet.
  * In hardhat.config.js, add the sepolia network and use alchemy as provider and also add the private key of your metamask account.
  * After that, use npm i.
  * use npx hardhat run scripts/deploy.js --network sepolia.
  * Now copy the contract address in the contract address variable in ./pages/index.js
  * Now run npm run dev.
  * It will create a server on localhost:3000
  * Now you can use any wallet to interact with any functionality except deposit and withdraw.
  * To interact with deposit and withdraw, you must choose your account through which you have done deployment of contract.

Possibility of Error:

* Paste correct Alchemy URL .
* Use the account through which you have done deployment to interact with deposit and withdraw functions otherwise you will get call revert function error or unexpected gas        limit error.

scm-starter's People

Contributors

alok-raturi avatar metacrafterchris avatar crgold avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.