@@ -36,22 +36,22 @@ import { createApp } from "@deroll/app";
3636
3737// Create the application
3838const app = createApp ({
39- url : process .env .ROLLUP_HTTP_SERVER_URL || " http://127.0.0.1:5004" ,
39+ baseUrl : process .env .ROLLUP_HTTP_SERVER_URL || " http://127.0.0.1:5004" ,
4040});
4141
4242// Handle input encoded in hex
4343app .addAdvanceHandler (async ({ payload }) => {
44- // read payload as string
45- const str = hexToString (payload );
44+ // read payload as string
45+ const str = hexToString (payload );
4646
47- // create a notice with the string in uppercase
48- await app .createNotice ({ payload: stringToHex (str .toUpperCase ()) });
47+ // create a notice with the string in uppercase
48+ await app .createNotice ({ payload: stringToHex (str .toUpperCase ()) });
4949});
5050
5151// Start the application
5252app .start ().catch ((e ) => {
53- console .error (e );
54- process .exit (1 );
53+ console .error (e );
54+ process .exit (1 );
5555});
5656```
5757
@@ -82,9 +82,9 @@ cartesi send
82821 . Choose ` Send generic input to the application. `
83832 . After choose ` Foundry `
84843 . Select the defaults:
85- 1 . Select the RPC URL ` http://127.0.0.1:8545 `
86- 2 . Select Mnemonic
87- 3 . Account, DApp address
85+ 1 . Select the RPC URL ` http://127.0.0.1:8545 `
86+ 2 . Select Mnemonic
87+ 3 . Account, DApp address
88884 . Select ` Input String encoding ` and in the input type ` Hello world! ` and hit enter.
8989
9090Expected output:
@@ -106,6 +106,7 @@ cartesi send
106106Expected output in the ` cartesi rollups logs ` terminal:
107107
108108``` shell
109+
109110```
110111
111112Now you're ready to start building your Cartesi application with cartesi and deroll!
@@ -114,8 +115,8 @@ Now you're ready to start building your Cartesi application with cartesi and der
114115
115116### Requirements
116117
117- - Corepack (with pnpm) or pnpm v9 (9.7.1 recommended)
118- - Node 20 or greater (LTS)
118+ - Corepack (with pnpm) or pnpm v9 (9.7.1 recommended)
119+ - Node 20 or greater (LTS)
119120
120121### Installation
121122
0 commit comments