crypto-bug-hunters / bug-buster

🪲 Bug Buster, a bug bounty platform powered by Cartesi Rollups
https://x.com/BugBusterApp
Apache License 2.0
10 stars 10 forks source link

Bump Sunodo SDK to 0.4.0 #81

Closed guidanoli closed 5 months ago

guidanoli commented 5 months ago

Closes #71

guidanoli commented 5 months ago

Running sunodo build currently raises the following error:

id: unknown user dapp
chown: unknown group 
id: unknown user dapp
chown: unknown group 
su: unknown user dapp

Halted with payload: 1
Cycles: 43872128
43872128: b9f13b6df3b8868c9b8f921cf4cfc937f64de8ee0e8148815c59796aa74574c6
Storing machine: please wait
    Error: Command failed with exit code 2: docker container exec 17ad6da549d06d490c66408c132cb89c1a556fbc9e4ecb41463e385d71df169e cartesi-machine --assert-rolling-template --ram-length=128Mi 
    --flash-drive=label:root,filename:/tmp/.sunodo/image.ext2 --final-hash --store=/tmp/.sunodo/image --append-bootargs=no4lvl --append-init=WORKDIR=/opt/cartesi/dapp --append-entrypoint=export 
    PATH=/opt/cartesi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --append-entrypoint=rollup-init /opt/cartesi/dapp/dapp

Here is the output of sunodo --version:

@sunodo/cli/0.12.0 linux-x64 node-v20.12.0
guidanoli commented 5 months ago

The tests are failing, but I'm leaving the bare minimum for a future PR to fix just the tests, and not the infrastructure around the test environment.

guidanoli commented 5 months ago

I've created #82 for us to fix the Lua tests later.

guidanoli commented 5 months ago

I'm getting this erro when trying to send a bounty via cli.

❯ go run ./cli send bounty \
    -n "Lua Bounty" \
    -d "Description of Lua bounty" \
    -c ./tests/bounties/lua-bounty/lua-5.4.3-bounty_riscv64.tar.xz
INF fork/exec /usr/local/bin/cast: argument list too long
exit status 1

This is a known issue with the CLI. With the migration from EggRoll to Rollmelette, we unfortunately don't have suport to a low-level send transaction feature. So, instead of using go-ethereum indirectly, we are (for the time being) calling cast from Go. We plan to have a Typescript CLI in the future which will use viem to perform these kinds of L1 transactions. You can see there is now a notice in the README stating that the CLI and, therefore, the populate script, are unstable for now. Tests should be done manually through the web front-end for now. See #76 and #79

guidanoli commented 5 months ago

Thanks a bunch, guys! :pray: