-
Notifications
You must be signed in to change notification settings - Fork 2
Stack too deep error on safe-smart-account/contracts/Safe.sol #2
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
Comments
Hey Thanks for trying this out. I'll take a look, but meanwhile, are you using optimization? I have runs = 200 on my project and it's working fine |
@bugduino can you share your script? I can take a look |
The repo is private unfortunately but I can share the upgrade script alone if that is useful although it does not compile given the issue above so not sure if it's really needed. Btw in foundry.toml I tried both with no optimization and with 200 runs but I got the same result This is my
|
This is the simplified script I'm using
|
Thanks. Your script looks perfect, so this might be a bottleneck on the library. I might need to put all arguments from |
Thanks! Although the error seems to be referencing the underlying |
I quickly tried to compile using the latest version and seems to be working now! I'm in the middle of an audit so I unable to test the full upgrade but will do as soon as possible and let you know if everything goes well. In the meantime thanks for the quick fix! |
@aviggiano when calling the
|
So you need to pass the derivation path like this Line 37 in deb5a48
This will use |
I'll update the README to make it clearer |
Makes sense. I have another problem but I think it's unrelated to the |
Hi,
I'm trying to use the library as specified in the Readme but when I try to compile the script I get a Stack too deep error on
lib/safe-utils/lib/safe-smart-account/contracts/Safe.sol:33:1
Is there anything that should be done maybe not documented?
I'm using solidity v0.8.29 and already using
via_ir
infoundry.toml
.The
safe-smart-account
lib is at this commitbf943f80fec5ac647159d26161446ac5d716a294 (HEAD, tag: v1.4.1)
The text was updated successfully, but these errors were encountered: