Last Man Standing

First Flight #45
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

[I-1] Missing `makefile` for better build process and maintenance.

Root + Impact

[I-1] Missing makefile for better build process and maintenance.

Description

The project lacks a makefile, which can lead to issues with building and maintaining the project.

A makefile can automate tasks such as compiling contracts, running tests, and deploying the contract to a test network

Risk

Likelihood: Low

  • Reason 1: The project lacks a makefile, which can lead to issues with building and maintaining the project.

Impact:

Without knowing the exact versions of tools and dependencies used by the time of development, it may be difficult to update or maintain the project and could lead to unexpected issues during development and deployment in the future.

Proof of Concept

The project lacks a makefile, which can lead to issues with building and maintaining the project.

Recommended Mitigation

Create a makefile for the project and include commands for compiling contracts, running tests, and deploying the contract to a test network. This will help in maintaining the project and reducing the risk of errors during development and deployment.

Here is a simple example for a makefile for a Solidity project:

-include .env
all: clean remove install update build
# Clean the repo
clean :; forge clean
# Remove modules
remove :; rm -rf .gitmodules && rm -rf .git/modules/* && rm -rf lib && touch .gitmodules && git add . && git commit -m "modules"
install :; forge install foundry-rs/forge-std@v1.10.0 --no-commit && forge install openzeppelin/openzeppelin-contracts@v5.4.0 --no-commit
# Update Dependencies
update:; forge update
build:; forge build
test :; forge test
snapshot :; forge snapshot
format :; forge fmt
Updates

Appeal created

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.