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

fix: Dont't Merge. Staging hotfix v9.0.7 #1172

Closed
wants to merge 1 commit into from

Conversation

ws4charlie
Copy link
Contributor

Description

  1. Allow invalid cctx (0 amount to send) to go through.
  2. Corrected previous typo on Mumbai's chain_id

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Checklist:

  • I have added unit tests that prove my fix feature works

@ws4charlie ws4charlie changed the title fix: Hotfix v9.0.7 fix: Dont't Merge. Staging hotfix v9.0.7 Sep 22, 2023
@@ -108,7 +108,12 @@ func (signer *BTCSigner) SignWithdrawTx(to *btcutil.AddressWitnessPubKeyHash, am
remaining := total - amount
remainingSats, err := getSatoshis(remaining)
if err != nil {
return nil, err
// TODO: amount validation should be done in zeta core to block invalid cctx
Copy link
Member

Choose a reason for hiding this comment

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

I think there are different validaty check that we could perform for a cctx:

  • addresses validaty
  • amount
  • len(outbound) <= 2

Created an issue for it #1180

@ws4charlie ws4charlie closed this Sep 26, 2023
@lumtis lumtis deleted the hotfix-v9.0.7 branch October 27, 2023 23:19
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.

2 participants