From 1665181e81f384dfefa1a5f17cb4d669143d0818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Silva?= Date: Fri, 6 Sep 2024 16:22:58 -0300 Subject: [PATCH] Create bounty for solidity 0.8.27 (#147) * Create bounty for solidity 0.8.27 * Removing unused var and duplicated value definition --- populate.sh | 6 +++--- tests/bounties/Makefile | 2 +- tests/bounties/solidity-bounty/Makefile | 5 +++-- tests/bounties/solidity-bounty/info.json | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/populate.sh b/populate.sh index c76d32d..7490e77 100755 --- a/populate.sh +++ b/populate.sh @@ -182,17 +182,17 @@ SOLIDITY_DESCRIPTION=$(jq -r '.description' "$SOLIDITY_INFO_FILE") SOLIDITY_IMG_LINK=$(jq -r '.imgLink' "$SOLIDITY_INFO_FILE") SOLIDITY_SPONSOR_NAME="Spencer Smart" -# 0.8.26 +# 0.8.27 bounty_index=$(go run ./cli state | jq '.bounties | length') go run ./cli send bounty \ -f "$DEV_ACCOUNT" \ - -n "Solidity 0.8.26" \ + -n "Solidity 0.8.27" \ -i "$SOLIDITY_IMG_LINK" \ -d "$SOLIDITY_DESCRIPTION" \ --duration "$ONE_DAY" \ - -p '/bounties/examples/solidity-0.8.26-bounty_riscv64.tar.xz' \ + -p '/bounties/examples/solidity-0.8.27-bounty_riscv64.tar.xz' \ -t "$TOKEN_ADDRESS" go run ./cli send sponsor \ diff --git a/tests/bounties/Makefile b/tests/bounties/Makefile index a4f7c1a..1329a4a 100644 --- a/tests/bounties/Makefile +++ b/tests/bounties/Makefile @@ -7,7 +7,7 @@ all: $(MAKE) -C busybox-bounty riscv64 VERSION=1.36.1 - $(MAKE) -C solidity-bounty riscv64 VERSION=0.8.26 + $(MAKE) -C solidity-bounty riscv64 VERSION=0.8.27 clean: $(MAKE) -C lua-bounty clean diff --git a/tests/bounties/solidity-bounty/Makefile b/tests/bounties/solidity-bounty/Makefile index bf3ca9c..e2a2f40 100644 --- a/tests/bounties/solidity-bounty/Makefile +++ b/tests/bounties/solidity-bounty/Makefile @@ -1,5 +1,6 @@ -ARCH=$(shell uname -m) -VERSION=0.8.26 +ifndef VERSION + $(error VERSION is not set for Solidity.) +endif BOUNTY_RISCV64_TAR=solidity-$(VERSION)-bounty_riscv64.tar.xz # Use GitHub Actions cache when available diff --git a/tests/bounties/solidity-bounty/info.json b/tests/bounties/solidity-bounty/info.json index fee0ab0..062ef52 100644 --- a/tests/bounties/solidity-bounty/info.json +++ b/tests/bounties/solidity-bounty/info.json @@ -1,4 +1,4 @@ { - "description": "Find bugs in Solidity, the most popular programming language for smart contracts!\n\nSubmit Solidity code and try to crash the compiler exit with a segmentation fault status (code 139).\n\nThe source code of the bounty can be inspected at:\nhttps://github.com/crypto-bug-hunters/bug-buster/tree/main/tests/bounties/solidity-bounty", - "imgLink": "https://docs.soliditylang.org/en/v0.8.26/_static/img/logo-dark.svg" + "description": "Find bugs in Solidity, the most popular programming language for smart contracts!\n\nSubmit Solidity code and try to crash the compiler exit with a segmentation fault status (code 139).\n\nThe source code of the bounty can be inspected at:\nhttps://github.com/crypto-bug-hunters/bug-buster/tree/main/tests/bounties/solidity-bounty", + "imgLink": "https://docs.soliditylang.org/en/v0.8.27/_static/img/logo-dark.svg" }