Skip to content

Commit

Permalink
Merge pull request #682 from jtfirek/patch-1
Browse files Browse the repository at this point in the history
Update withdrawal-flow.mdx
  • Loading branch information
cpengilly authored May 14, 2024
2 parents 44b27dd + 458ddc8 commit d7fd352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/stack/protocol/withdrawal-flow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Typically this is done [by the SDK](https://sdk.optimism.io/classes/crosschainme

### Offchain processing

1. A user calls the SDK's [`CrossDomainMessenger.proveMessage()`](https://github.com/ethereum-optimism/optimism/blob/62c7f3b05a70027b30054d4c8974f44000606fb7/packages/sdk/src/cross-chain-messenger.ts#L1452-L1471) with the hash of the L1 message.
1. A user calls the SDK's [`CrossDomainMessenger.proveMessage()`](https://github.com/ethereum-optimism/optimism/blob/62c7f3b05a70027b30054d4c8974f44000606fb7/packages/sdk/src/cross-chain-messenger.ts#L1452-L1471) with the hash of the L2 message.
This function calls [`CrossDomainMessenger.populateTransaction.proveMessage()`](https://github.com/ethereum-optimism/optimism/blob/62c7f3b05a70027b30054d4c8974f44000606fb7/packages/sdk/src/cross-chain-messenger.ts#L1746-L1798).

2. To get from the L2 transaction hash to the raw withdrawal fields, the SDK uses [`toLowLevelMessage`](https://github.com/ethereum-optimism/optimism/blob/62c7f3b05a70027b30054d4c8974f44000606fb7/packages/sdk/src/cross-chain-messenger.ts#L368-L450).
Expand Down

0 comments on commit d7fd352

Please sign in to comment.