Unable to compile `IAccount.cairo` due to re-definition of `__validate_declare__`
See original GitHub issueCompile the IAccount.cairo contract.
📝 Details
It would fail to compile the IAccount.cairo contract and give this error:
openzeppelin/account/IAccount.cairo:22:31: Redefinition of '__main__.IAccount.library_call___validate_declare__.Args.class_hash'.
func __validate_declare__(class_hash: felt) {
🔢 Code to reproduce bug
from the src directory:
starknet-compile openzeppelin/account/IAccount.cairo
Also tried
starknet-compile openzeppelin/account/IAccount.cairo --account
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just for awareness, this is blocking us at Immutable currently. Would recommend the temp solution of
cls_hashas Starkware may be slow to adjustI created the issue in Cairo-lang here: https://github.com/starkware-libs/cairo-lang/issues/100