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: fixed requests throw error when both data and input fields are present in transaction object #2551

Conversation

quiet-node
Copy link
Member

@quiet-node quiet-node commented May 30, 2024

Description:
This PR fixed requests throw error when both data and input fields are present in transaction object.

  • transaction object has only data field -> no modification
  • transaction object has only input field -> copy value of input to data & delete input
  • transac object has both data and input field
    • same value -> keep data & delete input
    • different value -> copy value of input to data & delete input

Related issue(s):

Fixes #2547
Fixes #2550

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
…resent in transaction object

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
@quiet-node quiet-node added the bug Something isn't working label May 30, 2024
@quiet-node quiet-node added this to the 0.49.0 milestone May 30, 2024
@quiet-node quiet-node self-assigned this May 30, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link

github-actions bot commented May 30, 2024

Acceptance Tests

  19 files  231 suites   29m 42s ⏱️
593 tests 588 ✔️ 3 💤 2
682 runs  675 ✔️ 3 💤 4

Results for commit 4f8b998.

♻️ This comment has been updated with latest results.

Copy link

Tests

    2 files  149 suites   14s ⏱️
834 tests 833 ✔️ 1 💤 0
846 runs  845 ✔️ 1 💤 0

Results for commit 4f8b998.

Copy link
Contributor

@ebadiere ebadiere left a comment

Choose a reason for hiding this comment

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

LG.

@ebadiere ebadiere merged commit 084547f into main Jun 3, 2024
38 of 42 checks passed
@ebadiere ebadiere deleted the 2547-accept-the-requests-with-both-data-input-fields-ignore-the-extra-parameter-instead-of-throwing-error branch June 3, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants