-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
hashBytecode errors with const hex = hex_.replace('0x', ''); TypeError: hex_.replace is not a function #2695
Comments
Minimal reproduction? |
Your stacktrace has usage from |
Hello @jarrodwatts. Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository. Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster. Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue. |
Hey @jxom - apologies was AFK for a few days. You're right the hashBytecode works as expected. I was trying to provide the bytecode hash as an argument to my factory contract when calling Not sure if any action is required here but just letting you know. |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Viem version. If you have any questions or comments you can create a new discussion thread. |
Check existing issues
Viem Version
2.21.2
Current Behavior
I have a big
ACCOUNT_BYTECODE
variable (too big to fit in the issue)hashBytecode(ACCOUNT_BYTECODE)
Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: