-
Notifications
You must be signed in to change notification settings - Fork 18
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
Implement aggregation hook #52
base: main
Are you sure you want to change the base?
Conversation
Hey, can you comment Issue #51, so I can assign you ? Thanks ! |
246a8ea
to
1120410
Compare
} | ||
|
||
#[constructor] | ||
fn constructor(ref self: ContractState, hooks: Span<ContractAddress>) { |
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.
Hooks are not meant to be defined in the constructor but retrieved from the metadata. But this might be a little tricky, so I can handle it if necessary
let hook_count = self.hook_count.read(); | ||
let mut i = 0_usize; | ||
loop { | ||
if i >= hook_count { |
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.
To be applied to hooks defined in metadata.
1120410
to
b479967
Compare
Hi @JordyRo1 ! Any news about this PR ? Should I change something or is it fine to be merged ? This PR was done in the context of OD Hack 5 and the OD Hack 9 has just finished ... 😕 |
Implements #51.