-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(bridge-contracts): fix memo transaction hash encoding #1428
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks fine, but please import the trait anonymously.
crates/astria-bridge-withdrawer/tests/blackbox/helpers/test_bridge_withdrawer.rs
Outdated
Show resolved
Hide resolved
8c03c0a
to
cd975cd
Compare
…idge_withdrawer.rs Co-authored-by: Richard Janis Goldschmidt <github@aberrat.io>
Co-authored-by: Richard Janis Goldschmidt <github@aberrat.io>
cd975cd
to
45fef0d
Compare
…idge-contracts/hash-fix
…idge-contracts/hash-fix
f31129f
to
44caf94
Compare
@@ -502,6 +516,11 @@ impl GetWithdrawalActionsError { | |||
fn log_without_transaction_hash(_log: &Log) -> Self { | |||
Self(GetWithdrawalActionsErrorKind::LogWithoutTransactionHash) | |||
} | |||
|
|||
// XXX: Somehow identify the log? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think this error should ever happen, but maybe put the tx hash?
self.rollup_withdrawal_event_id.len() <= 256, | ||
"rollup withdrawal event id must not be more than 64 bytes", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update error message to 256
* main: feat(conductor): implement restart logic (#1463) fix: ignore `RUSTSEC-2024-0370` (#1483) fix, refactor(sequencer): refactor ics20 logic (#1495) fix(ci): use commit SHA instead of PR number preview-env images (#1501) chore(bridge-withdrawer): pass GRPC and CometBFT clients to consumers directly (#1510) fix(sequencer): Fix incorrect error message from BridgeUnlock actions (#1505) fix(bridge-contracts): fix memo transaction hash encoding (#1428) fix: build docker when workflow explicitly includes component (#1498) chore(sequencer): migrate from `anyhow::Result` to `eyre::Result` (#1387) fix(ci): typo for required field in sequencer preview-env (#1500) feat(ci): provide demo/preview environments (#1406)
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 therollup_transaction_hash
value, which returns a shortened version of the hash. the string0x1234...0x1234
is instead of the full hash (i.e. you would expect it to give you something like0x1234567890123456789012345678901234567890123456789012345678901234
).Changes
Breaking Changelist
Related Issues
Link any issues that are related, prefer full github links.
closes #1427, #1471