diff --git a/scripts/cosmwasm/init.sh b/scripts/cosmwasm/init.sh index a80b4f361..68bd8ab40 100644 --- a/scripts/cosmwasm/init.sh +++ b/scripts/cosmwasm/init.sh @@ -55,5 +55,7 @@ jq --argjson pubKey "$PUB_KEY" '.consensus["validators"]=[{"address": "'$ADDRESS [ -f restart-wasmd.sh ] && rm restart-wasmd.sh echo "DA_BLOCK_HEIGHT=$DA_BLOCK_HEIGHT" >> restart-wasmd.sh +echo "wasmd start --rollkit.aggregator true --rollkit.da_address=":26650" --rollkit.da_start_height \$DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr \"0.0.0.0:36656\" --minimum-gas-prices="0.025stake"" >> restart-wasmd.sh + # start the chain wasmd start --rollkit.aggregator true --rollkit.da_address=":26650" --rollkit.da_start_height $DA_BLOCK_HEIGHT --rpc.laddr tcp://127.0.0.1:36657 --p2p.laddr "0.0.0.0:36656" --minimum-gas-prices="0.025stake" \ No newline at end of file diff --git a/tutorials/cosmwasm.md b/tutorials/cosmwasm.md index c2c6f4d72..278cf5b9a 100644 --- a/tutorials/cosmwasm.md +++ b/tutorials/cosmwasm.md @@ -1,9 +1,5 @@ # 🗞️ CosmWasm rollup -::: warning -This tutorial is under construction. 🏗️ -::: - CosmWasm is a smart contracting platform built for the Cosmos ecosystem by making use of [WebAssembly](https://webassembly.org) (Wasm) to build smart contracts for Cosmos-SDK. In this tutorial, we will be @@ -127,9 +123,25 @@ Cosmos-SDK applications to connect to Celestia's data availability network. git clone https://github.com/CosmWasm/wasmd.git cd wasmd git checkout tags/v0.50.0 -go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/rollkit/cosmos-sdk@v0.50.1-rollkit-v0.11.9-no-fraud-proofs +go mod edit -replace github.com/cosmos/cosmos-sdk=github.com/rollkit/cosmos-sdk@v0.50.1-rollkit-v0.11.19-no-fraud-proofs go mod tidy -compat=1.17 go mod download +``` + +Now, comment out lines 902-904 in `app/app.go`: + +```go +if err != nil { + panic(err) +} +``` + +This is a temporary fix until [CosmWasm/wasmd#1785](https://github.com/CosmWasm/wasmd/issues/1785) +is resolved. + +And build the binary: + +```bash make install ```