-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cappl 391 wire in workflow registry #15460
Conversation
custmsg.NewLabeler(), clockwork.NewRealClock(), keys[0]) | ||
|
||
loader := syncer.NewWorkflowRegistryContractLoader(cfg.Capabilities().WorkflowRegistry().Address(), func(ctx context.Context, bytes []byte) (syncer.ContractReader, error) { | ||
return relayer.NewContractReader(ctx, bytes) |
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.
You can simplify this to just relayer.NewContractReader I think?
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.
it needs to be the factory method, internally the workflow registry create this on demand am assuming for good reason
}, eventHandler) | ||
|
||
wfSyncer := syncer.NewWorkflowRegistry(globalLogger, func(ctx context.Context, bytes []byte) (syncer.ContractReader, error) { | ||
return relayer.NewContractReader(ctx, bytes) |
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.
Same with this
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
Resolves-> https://smartcontract-it.atlassian.net/browse/CAPPL-139