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

Feat/celer #16

Merged
merged 11 commits into from
Jan 26, 2023
Merged

Feat/celer #16

merged 11 commits into from
Jan 26, 2023

Conversation

naveed-klaytn
Copy link
Contributor

Proposed changes

This PR includes the unit test cases for Celer Bridge module

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or Enhancement
  • Others
  • Test-cases

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA by posting "I have read the CLA Document and I hereby sign the CLA" in the comment
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

}

})

it("should perform mintCanonicalToken action", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't burnCanonical Token ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also why is the expect condition checking for invalid deposit id ?

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 invalid burn id isn't expect is expecting to be true. This error message I've just wrote (for expect) to return if burnId doesn't contains 0x (which can only be case when burnCanonicalToken wasn't successful).

@@ -55,4 +99,6 @@ describe("poolTransfer", async () => {

expect(transferId).to.contains('0x', "invalid transfer id")
Copy link
Contributor

Choose a reason for hiding this comment

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

why invalid transfer id for success poolTransfer ?

Copy link
Contributor Author

@naveed-klaytn naveed-klaytn Jan 17, 2023

Choose a reason for hiding this comment

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

this invalid transfer id isn't expect is expecting to be true. This error message I've just wrote (for expect) to return if transferId doesn't contains 0x (which can only be case when poolTransfer wasn't successful).

})
it("should throw error if DEPOSIT_ID is of status 'TRANSFER_ALREADY_COMPLETED'", async function() {
let alreadyRefundedDepositId = '0x0963539b3ef3f0c4033e3e93ac733a7f6484345f6db8d3d85b389033ab466827'
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we returning here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, did it while local testing. forgot to remove. Removed now

@0xxlegolas 0xxlegolas merged commit 646b2d7 into main Jan 26, 2023
@0xxlegolas 0xxlegolas deleted the feat/celer branch February 8, 2023 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants