cairo-contracts
cairo-contracts copied to clipboard
Error compiling IAccount.cairo
Trying to compile with nile compile --directory src
raises the following error:
Compiling src/openzeppelin/account/IAccount.cairo
Account contracts must have external functions named {'__validate_declare__', '__validate__', '__execute__'}, found: [].
Could be related to #465
Any updates here or suggested workarounds?
Hi @marlon-wiprud, a workaround until an update is released is to change the name of the file containing the interface to something not finished with Account (so starknet compiler doesn't recognize it as an account contract).
Rename IAccount.cairo to AccountInterface.cairo.
Hi @marlon-wiprud, a workaround until an update is released is to change the name of the file containing the interface to something not finished with Account (so starknet compiler doesn't recognize it as an account contract).
Rename IAccount.cairo to AccountInterface.cairo.
This worked, thank you!
Closing this since it will not be relevant anymore after the ongoing Cairo 1.0 migration. If you think this is a mistake, feel free to open a new issue.