cairo-contracts icon indicating copy to clipboard operation
cairo-contracts copied to clipboard

Error compiling IAccount.cairo

Open ericnordelo opened this issue 2 years ago • 1 comments

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: [].

ericnordelo avatar Oct 05 '22 11:10 ericnordelo

Could be related to #465

ericnordelo avatar Oct 05 '22 11:10 ericnordelo

Any updates here or suggested workarounds?

marlon-wiprud avatar Nov 12 '22 22:11 marlon-wiprud

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.

ericnordelo avatar Nov 14 '22 12:11 ericnordelo

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!

marlon-wiprud avatar Dec 01 '22 00:12 marlon-wiprud

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.

martriay avatar Feb 16 '23 21:02 martriay