Skip to content

EmilGallajov/Smart-Contract-Lottery-Foundry

Repository files navigation

smartcontractlottery

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • foundry
    • You'll know you did it right if you can run forge --version and you see a response like forge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)

Quickstart

git clone https://github.com/Cyfrin/foundry-smart-contract-lottery-cu
cd foundry-smart-contract-lottery-cu
forge build

Usage

Start a local node

make anvil

Library

If you're having a hard time installing the chainlink library, you can optionally run this command.

forge install smartcontractkit/chainlink-brownie-contracts@1.3.0 --no-commit

Deploy

This will default to your local node. You need to have it running in another terminal in order for it to deploy.

make deploy
forge test

or

forge test --fork-url $SEPOLIA_RPC_URL

Test Coverage

forge coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors