This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
feat: use execute_from_outside (SNIP-9) to broadcast eth tx #1240
Closed
Description
Why
We currently rely on the __validate__
& __execute__
semantic from Starknet to broadcast eth transaction. This brings the following limitations
- the step limit of
__validate__
is lower than the one of__execute__
and not sufficient for some large tx - we cannot do the full eth validation in
__validate__
because we can't access the balance of the account - since some validation is also done in
__execute__
, we face a nonce mismatch error in some edge cases - we had to add some storage var for the library calls in the account contract
- if tx fees are not deactivated for Kakarot accounts, the accounts may face a tx reverted for unsufficient (starknet) funds while it was supposed to be good from the eth point of view
What
Using the SNIP 9 execute_from_outside
standard, we can move all the required validation to a real "execute" entrypoint, call whatever contract is required, and have a proper nonce management not conflicting with the Starknet one.
How
Metadata
Metadata
Assignees
Labels
No labels