Calindra / nonodo

Development Node for Cartesi Rolups
Apache License 2.0
14 stars 14 forks source link

read inputbox between espresso #114

Closed ZzzzHui closed 1 month ago

ZzzzHui commented 1 month ago

This hasn't been tested yet. From what I see, Cappuccino uses Sepolia as L1. So tomorrow I will test with Sepolia

fabiooshiro commented 1 month ago

Hi @ZzzzHui

image

I dunno if the return is needed...

fabiooshiro commented 1 month ago

@ZzzzHui I added an error check and simply returned the error.

ZzzzHui commented 1 month ago

I've done some tests on Sepolia, the codes are working as expected. The command to run is

./nonodo \
    --sequencer=espresso --from-block=1680465 --namespace=15343 --enable-debug \
    --contracts-application-address 0x590F92fEa8df163fFF2d7Df266364De7CE8F9E16 \
    --contracts-input-box-address 0x58Df21fE097d4bE5dCf61e01d9ea3f6B81c2E1dB \
    --contracts-input-box-block 6099597 \
    --rpc-url https://sepolia.infura.io/v3/<API_KEY>

We don't actually need the input-box-block because we start reading past inputs from the l1_finalized_block specified in the espresso's --from-block's header

fabiooshiro commented 1 month ago

Hi @ZzzzHui, the build is broken.