question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to compile `IAccount.cairo` due to re-definition of `__validate_declare__`

See original GitHub issue

Compile 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rzmahmoodcommented, Sep 15, 2022

Just for awareness, this is blocking us at Immutable currently. Would recommend the temp solution of cls_hash as Starkware may be slow to adjust

1reaction
unparalleled-jscommented, Sep 14, 2022

I created the issue in Cairo-lang here: https://github.com/starkware-libs/cairo-lang/issues/100

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found