-
Notifications
You must be signed in to change notification settings - Fork 353
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
Migrate udc #610
Migrate udc #610
Conversation
src/openzeppelin/utils/udc.cairo
Outdated
// TODO: Fix trait impl errors in abi | ||
// #[abi] | ||
trait IUniversalDeployerContract { | ||
#[event] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do these modifiers on traits like this?
i haven't seen that anywhere else yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you can and the contracts compile. The external
and view
macros might be redundant, but I assume we'll need to include it for event
(so other contracts aren't required to reimplement the event in an impl
). Here's a test data example from the Cairo repo: https://github.com/starkware-libs/cairo/blob/main/crates/cairo-lang-starknet/src/plugin/plugin_test_data/dispatcher#L6-L17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good! let's wait for the tests
Co-authored-by: Martín Triay <martriay@gmail.com>
This PR got closed by mistake automatically after deleting the |
Fixes (partial) #552.
WIP. Still needs tests.
Note: the cairo submodule is bumped to starkware-libs/cairo@3eb7c83 (above alpha7) in order to include a bug fix for inconsistent references annotations. Otherwise, the runner won't set up properly.
PR Checklist