-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove abi refs from publisher (#10766)
Removes unecessary import of abis to `l1-publisher`, now that we add errors to the `RollupAbi` (thanks to #10697). This means we can remove my ugly code to try and catch blob and leonidas errors from a header check. --- Note: I found that the use of `getContractError` is still needed in `tryGetErrorFromRevertedTx`. Viem doesn't play nice when simulating blob txs and either doesn't allow blob sidecars (hence the `checkBlobSlot` override) or doesn't throw an error to catch. I found a middle ground where `prepareTransactionRequest` would throw with the error we wanted in the case of a blob issue (e.g. incorrect blob proof), but this error still only has the selector thrown and not the custom name e.g. `Execution reverted with reason: custom error 0x5ca17bef: 0113d536ef349476f9a5112623449dd1cf574b8213bc6fe33c1edd63bf832890.` To get the name, I used viem's `getContractError` which works fine: `The contract function "propose" reverted. Error: Rollup__InvalidBlobProof(bytes32 blobHash) (0x0113d536ef349476f9a5112623449dd1cf574b8213bc6fe33c1edd63bf832890)` --- Another note: I also snuck in adding the issue number for #10754 in some comments (sorry)
- Loading branch information
1 parent
6f07132
commit 17d6802
Showing
3 changed files
with
9 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters