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

Add getMessageFeeTokenID method to BaseInteroperabilityMethod #7566

Closed
Tracked by #7211
ishantiw opened this issue Sep 23, 2022 · 0 comments · Fixed by #7659
Closed
Tracked by #7211

Add getMessageFeeTokenID method to BaseInteroperabilityMethod #7566

ishantiw opened this issue Sep 23, 2022 · 0 comments · Fixed by #7659
Assignees
Labels
framework/module/interoperability Interoperability module
Milestone

Comments

@ishantiw
Copy link
Contributor

Description

Add getMessageFeeTokenID method to BaseInteroperabilityMethod

def getMessageFeeTokenID(chainID: ChainID) -> TokenID:
    # Check for direct channel
    if chainAccount(chainID) does not exist:
        chainID = CHAIN_ID_MAINCHAIN
    return channel(chainID).messageFeeTokenID

Acceptance Criteria

  • Should have all the relevant unit tests

Additional Information

@ishantiw ishantiw added the framework/module/interoperability Interoperability module label Sep 23, 2022
@shuse2 shuse2 added this to the Sprint 80 milestone Oct 10, 2022
ishantiw added a commit that referenced this issue Oct 24, 2022
### What was the problem?

This PR resolves #7566

### How was it solved?

A new function `getMessageFeeTokenID` is implemented

### How was it tested?

Updated unit-test
@ishantiw ishantiw linked a pull request Oct 24, 2022 that will close this issue
@shuse2 shuse2 modified the milestones: Sprint 80, Sprint 81 Oct 24, 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