Skip to content

Conversation

@zyclonepunch
Copy link

@zyclonepunch zyclonepunch commented Oct 6, 2023

While getting to know your repo, i noticed a few optimizations that could be made in the solidity code. I am not sure exactly how to access selectors without simply hard coding them in the assembly and that very well may be the best course of action.

  • remove script folder with template file
  • add huff to readme instructions
  • add custom errors and optimizations to solidity
  • hard code custom errors as bytes4 in inline assembly
  • add custom errors and optimizations to huff (looks like huff currently provides no error info)

I am not sure currently how to update the huff code to pass tests. The Huff and now verification tests all appear to be reverting currently 🥲

Adds constants to shift gas to deployment
Signed-off-by: zyclonepunch <147099979+zyclonepunch@users.noreply.github.com>
@tanim0la
Copy link
Collaborator

tanim0la commented Oct 7, 2023

While getting to know your repo, i noticed a few optimizations that could be made in the solidity code. I am not sure exactly how to access selectors without simply hard coding them in the assembly and that very well may be the best course of action.

  • remove script folder with template file
  • add huff to readme instructions
  • add custom errors and optimizations to solidity
  • hard code custom errors as bytes4 in inline assembly
  • add custom errors and optimizations to huff (looks like huff currently provides no error info)

I am not sure currently how to update the huff code to pass tests. The Huff and now verification tests all appear to be reverting currently 🥲

The huff tests revert after you made changes to the huff code?

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.

2 participants