Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Add abi::encode_packed #1862

Closed
nikkolasg opened this issue Nov 15, 2022 · 0 comments · Fixed by #2104
Closed

Add abi::encode_packed #1862

nikkolasg opened this issue Nov 15, 2022 · 0 comments · Fixed by #2104

Comments

@nikkolasg
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There is currently no solution to have a packed encoding in Rust using ethers, while this is useful for many use cases on Solidity, for example while hashing.

Describe the solution you'd like
an abi::encode_packed()method that takes a list of Token and returns the encoding.

Describe alternatives you've considered
Currently, we have to use another library, which define its own types to achieve it https://github.com/roberts-ivanovs/eth-encode-packed-rs/blob/21962ce04aa62f396ac517fcbea91263dfc373a5/src/lib.rs#L103

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant