Skip to content

Commit 32b8a7f

Browse files
martin0995eshaben
andauthored
Apply suggestions from code review
Co-authored-by: Erin Shaben <eshaben@icloud.com>
1 parent edb4cd6 commit 32b8a7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tutorials/by-product/wormholescan/replace-signatures.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,9 @@ With the full VAA, Guardian signatures, and the latest Guardian set, we can now
333333
1. **Create the `replaceSignatures()` function** - open `src/helpers/vaaHelper.ts` and add the function header. To catch and handle errors properly, all logic will be wrapped inside a `try` block.
334334
335335
```typescript title="src/helpers/vaaHelper.ts"
336-
--8<-- "code/tutorials/by-product/wormholescan/replace-signatures/replace-sigs-4.ts:144:149"
337-
try {}
336+
--8<-- "code/tutorials/by-product/wormholescan/replace-signatures/replace-sigs-4.ts:144:152"
337+
// Add logic in the following steps here
338+
--8<-- "code/tutorials/by-product/wormholescan/replace-signatures/replace-sigs-4.ts:280:283"
338339
```
339340
340341
- **`vaa`** - original VAA bytes
@@ -387,7 +388,7 @@ With the full VAA, Guardian signatures, and the latest Guardian set, we can now
387388
9. **Send the updated VAA for verification and handle errors** - submit the updated VAA to an Ethereum RPC node for validation, ensuring it can be proposed for Guardian approval. If an error occurs during submission or signature replacement, log the issue and prevent further execution
388389

389390
```typescript
390-
--8<-- "code/tutorials/by-product/wormholescan/replace-signatures/replace-sigs-4.ts:252:282"
391+
--8<-- "code/tutorials/by-product/wormholescan/replace-signatures/replace-sigs-4.ts:252:279"
391392
```
392393

393394
???- code "Complete Function"

0 commit comments

Comments
 (0)