@@ -54,7 +54,6 @@ Learn to relay transactions directly by sending the correct transaction.
54
54
* Node.js version 16 or higher
55
55
* Git for version control
56
56
* Supersim
57
-
58
57
</details >
59
58
60
59
### What You'll Build
@@ -64,15 +63,14 @@ Learn to relay transactions directly by sending the correct transaction.
64
63
## Setup
65
64
66
65
<Steps >
67
-
68
66
### Run Supersim
69
67
70
68
This exercise needs to be done on Supersim.
71
69
You cannot use the devnets because you cannot disable autorelay on them.
72
70
73
- 1 . Follow the [ Installation Guide] ( /app-developers/tutorials/supersim/getting-started/installation ) .
71
+ 1 . Follow the [ Installation Guide] ( /app-developers/tutorials/supersim/getting-started/installation ) .
74
72
75
- 1 . Run Supersim * without* ` --interop.relay ` .
73
+ 2 . Run Supersim * without* ` --interop.relay ` .
76
74
77
75
``` sh
78
76
./supersim
@@ -86,7 +84,6 @@ Learn to relay transactions directly by sending the correct transaction.
86
84
87
85
``` sh file=<rootDir>/public/tutorials/setup-for-manual-relay.sh#L1-L147 hash=a63d72f58a06ca7ca78fd1592efcf4a3
88
86
```
89
-
90
87
</Steps >
91
88
92
89
## Manually relay a message using ` cast `
@@ -127,7 +124,6 @@ Whenever `L2ToL2CrossDomainMessenger` sends a message to a different blockchain,
127
124
Here we look for those messages, but get only the last one.
128
125
129
126
<details >
130
-
131
127
<summary >Example ` log-entry ` </summary >
132
128
133
129
``` yaml
@@ -146,15 +142,14 @@ Here we look for those messages, but get only the last one.
146
142
transactionHash : 0x1d6f2e5e2c8f3eb055e95741380ca36492f784b9782848b66b66c65c5937ff3a
147
143
transactionIndex : 0
148
144
` ` `
149
-
150
145
</details>
151
146
152
147
` ` ` sh
153
148
TOPICS=`cat log-entry | grep -A4 topics | awk '{print $1}' | tail -4 | sed 's/0x//'`
154
149
TOPICS=`echo $TOPICS | sed 's/ //g'`
155
150
```
156
151
157
- Consolidate the log topics into a single hex string.
152
+ Consolidate the log topics into a single hex string.
158
153
159
154
``` sh
160
155
ORIGIN=0x4200000000000000000000000000000000000023
@@ -165,13 +160,13 @@ CHAIN_ID_A=`cast chain-id --rpc-url $URL_CHAIN_A`
165
160
SENT_MESSAGE=` cat log-entry | awk ' /data/ {print $2}' `
166
161
```
167
162
168
- Read additional fields from the log entry.
163
+ Read additional fields from the log entry.
169
164
170
165
``` sh
171
166
LOG_ENTRY=0x` echo $TOPICS$SENT_MESSAGE | sed ' s/0x//' `
172
167
```
173
168
174
- Consolidate the entire log entry.
169
+ Consolidate the entire log entry.
175
170
176
171
``` sh
177
172
RPC_PARAMS=$( cat << INNER_END_OF_FILE
0 commit comments