You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sequencer currently imposes that the field astria.protocol.transactions.v1alpha1.BridgeUnlockAction.rollup_withdrawal_event_id has a length no more than 64 bytes.
This creates an issue when wanting to write the native formatting of a eth TX hash into this field, which is of the form 0x<hex-of-64-bytes>, for a total length of 130 bytes.
Very likely the restriction on the memo length is similarly too strict.
## Summary
Use the correct encoding functions to populate memo field in the
bridge's conversion logic from rollup withdrawal events to sequencer
actions.
## Background
We were using `ethers::H256::to_string()` to get the string for the
`rollup_transaction_hash` value, which returns a shortened version of
the hash. the string `0x1234...0x1234` is instead of the full hash (i.e.
you would expect it to give you something like
`0x1234567890123456789012345678901234567890123456789012345678901234`).
## Changes
- Use the correct
## Breaking Changelist
- The previously invalid memo data will now be populated with the
correct information. This doesn't actually break anything because we
also aren't actually using these hashes anywhere.
## Related Issues
Link any issues that are related, prefer full github links.
closes#1427, #1471
---------
Co-authored-by: Richard Janis Goldschmidt <[email protected]>
Sequencer currently imposes that the field
astria.protocol.transactions.v1alpha1.BridgeUnlockAction.rollup_withdrawal_event_id
has a length no more than 64 bytes.This creates an issue when wanting to write the native formatting of a eth TX hash into this field, which is of the form
0x<hex-of-64-bytes>
, for a total length of 130 bytes.Very likely the restriction on the memo length is similarly too strict.
astria/crates/astria-sequencer/src/bridge/bridge_unlock_action.rs
Lines 28 to 46 in fc9f225
┆Issue Number: ENG-802
The text was updated successfully, but these errors were encountered: