Skip to content
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

Use the correct encoding for ethers hashes in the bridge's conversion logic #1427

Closed
itamarreif opened this issue Aug 29, 2024 · 1 comment · Fixed by #1428
Closed

Use the correct encoding for ethers hashes in the bridge's conversion logic #1427

itamarreif opened this issue Aug 29, 2024 · 1 comment · Fixed by #1428
Assignees
Labels
bridging bug Something isn't working

Comments

@itamarreif
Copy link
Contributor

itamarreif commented Aug 29, 2024

Essentially, 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). The fix is to use encode_hex instead of to_string.

┆Issue Number: ENG-764

@SuperFluffy
Copy link
Member

Reopening because this is not yet implemented.

github-merge-queue bot pushed a commit that referenced this issue Sep 16, 2024
## 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 <github@aberrat.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bridging bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants