Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update Channel Terminated Message cross chain command #7656

Closed
Tracked by #7211
ishantiw opened this issue Oct 18, 2022 · 0 comments · Fixed by #7696
Closed
Tracked by #7211

Update Channel Terminated Message cross chain command #7656

ishantiw opened this issue Oct 18, 2022 · 0 comments · Fixed by #7696
Assignees
Labels
framework/module/interoperability Interoperability module
Milestone

Comments

@ishantiw
Copy link
Contributor

ishantiw commented Oct 18, 2022

Description

  • Update command schema
channelTerminatedCCMParamsSchema = {
    "type": "object",
    "required": ["stateRoot", "inboxSize"],
    "properties": {
        "stateRoot": {
            "dataType": "bytes",
            "length": HASH_LENGTH,
            "fieldNumber": 1
        },
        "inboxSize": {
            "dataType": "uint32",
            "fieldNumber": 2
        }
    }
}
  • Update execute method
def execute(ccu: Transaction, ccm: CCM) -> None:
    if isLive(ccm.sendingChainID):
        createTerminatedStateAccount(ccm.sendingChainID)

Acceptance Criteria

  • Should have all the unit tests

Additional Information

@ishantiw ishantiw added the framework/module/interoperability Interoperability module label Oct 18, 2022
@shuse2 shuse2 added this to the Sprint 81 milestone Oct 24, 2022
@Phanco Phanco self-assigned this Oct 25, 2022
@ishantiw ishantiw linked a pull request Oct 26, 2022 that will close this issue
ishantiw added a commit that referenced this issue Nov 7, 2022
### What was the problem?

This PR resolves #7656

### How was it solved?

Created a new `BaseCCChannelTerminatedCommand` inside `base/cc_commands`

### How was it tested?

Unit Test Updated accordingly
@ishantiw ishantiw closed this as completed Nov 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
framework/module/interoperability Interoperability module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants