@@ -225,9 +225,9 @@ library BridgeUtils {
225
225
226
226
// why `add(recipientAddressLength, offset)`?
227
227
// At this point, offset = 35, recipientAddressLength = 20. `mload(add(payload, 55))`
228
- // reads the next 32 bytes from bytes 23 in paylod , because the first 32 bytes
228
+ // reads the next 32 bytes from bytes 23 in payload , because the first 32 bytes
229
229
// of payload stores its length. So in reality, bytes 23 - 54 is loaded. During
230
- // casting to address (20 bytes), the least sigificiant bytes are retained, namely
230
+ // casting to address (20 bytes), the least significant bytes are retained, namely
231
231
// `recipientAddress` is bytes 35-54
232
232
assembly {
233
233
recipientAddress := mload (add (_payload, add (recipientAddressLength, offset)))
@@ -245,9 +245,9 @@ library BridgeUtils {
245
245
246
246
// Why `add(amountLength, offset)`?
247
247
// At this point, offset = 56, amountLength = 8. `mload(add(payload, 64))`
248
- // reads the next 32 bytes from bytes 32 in paylod , because the first 32 bytes
248
+ // reads the next 32 bytes from bytes 32 in payload , because the first 32 bytes
249
249
// of payload stores its length. So in reality, bytes 32 - 63 is loaded. During
250
- // casting to uint64 (8 bytes), the least sigificiant bytes are retained, namely
250
+ // casting to uint64 (8 bytes), the least significant bytes are retained, namely
251
251
// `recipientAddress` is bytes 56-63
252
252
assembly {
253
253
amount := mload (add (_payload, add (amountLength, offset)))
0 commit comments