Skip to content

This repository contains two Solidity smart contracts for managing NFTs and auctions on the Ethereum blockchain.

Notifications You must be signed in to change notification settings

dariusjvc/Auction-Tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auction-Tests

Auction-Tests

Requirements

node v16.0.0

Smart Contracts

  1. MyNFT.sol
  2. NFTAuction.sol

How to install

  1. git clone https://github.com/dariusjvc/Auction-Tests.git
  2. npm install
  3. npx hardhat compile

Run the tests with

npx hardhat test

Description

There the following tests:

  1. Test1: Verifies that the MyNFT smart contract has been deployed
  2. Test2: Verifies that the NFTAuction smart contract has been deployed
  3. Test3: Verifies the correct initial values for NFTAuction
  4. Test4: Allow bidder1 to place a bid
  5. Test5: Allow bidder2 to place a higher bid
  6. Test6: Transfer NFT to the highest bidder after auction ends

About

This repository contains two Solidity smart contracts for managing NFTs and auctions on the Ethereum blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published