-
Notifications
You must be signed in to change notification settings - Fork 681
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
Allow interchain accounts to connect with middleware #1356
Comments
Trying to write down what's needed for this issue to start the discussion... As discussed in the call today, we need to change the signature of the controller's RegisterInterchainAccount(ctx sdk.Context, connectionID, owner, version string) error Questions:
|
The version is the full channel version. We cannot assume what the underlying structure is at this entrypoint. The version should simply be passed to the
No, we cannot since we cannot unwrap the version yet. Checks will happen within
yes assuming the middleware stacking is ics29 -> ics27 (but there could be many middlewares in between the two) |
Ok, thanks. So then we need to remove this block of code and pass the Are there any other changes needed? |
I think that should work! A test of course should be added to check that this assumption holds |
Currently, the
OnChanOpenInit
callback stack is started by a module callingRegisterInterchainAccount
.RegisterInterchainAccount
will construct a valid ics27 version. It does not take in any information about potential middleware versions above the ics27 versionThe text was updated successfully, but these errors were encountered: