Skip to content

Conversation

@MartinquaXD
Copy link
Contributor

ethercontract-rs is computing and storing all the function signature hashes when generating the contract bindings.
Unfortunately we used ethabi::function::encode_inputs() which does not memoize the hash and therefore has to recompute it every time.
This PR makes simply makes sure that we don't rehash the signature every time.

Test Plan

Unit tests still work and I was able to continue running the backend services using this patched version

@MartinquaXD MartinquaXD merged commit bbce7c8 into main Nov 22, 2023
@MartinquaXD MartinquaXD deleted the skip-rehashing-function-signatures branch November 22, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants