Skip to content
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

ics04: remove unused version from init and try handlers #963

Merged
merged 3 commits into from
Jun 20, 2023

Conversation

crodriguezvega
Copy link
Contributor

No description provided.

@@ -432,16 +430,14 @@ function handleChanOpenInit(datagram: ChanOpenInit) {
datagram.order,
datagram.connectionHops,
datagram.portIdentifier,
datagram.channelIdentifier,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was also not correct here since the channel identifier is generated in INIT by the handler and it's not in the datagram.

datagram.counterpartyPortIdentifier,
datagram.counterpartyChannelIdentifier,
version // pass in version returned from callback
datagram.counterpartyChannelIdentifier
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THis shouldn't exist on ChanOpenInit

)
version, err = module.onChanOpenInit(
datagram.order,
datagram.connectionHops,
datagram.portIdentifier,
datagram.channelIdentifier,
channelIdentifier,
datagram.counterpartyPortIdentifier,
datagram.counterpartyChannelIdentifier,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not exist

@crodriguezvega crodriguezvega merged commit 854f2e1 into main Jun 20, 2023
@crodriguezvega crodriguezvega deleted the carlos/ics04-unused-version branch June 20, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants