Skip to content

fix: address invalid parameter#235

Merged
andreabadesso merged 10 commits intomasterfrom
fix/address-invalid-parameter
Apr 30, 2025
Merged

fix: address invalid parameter#235
andreabadesso merged 10 commits intomasterfrom
fix/address-invalid-parameter

Conversation

@andreabadesso
Copy link
Copy Markdown
Collaborator

@andreabadesso andreabadesso commented Apr 4, 2025

Motivation

The motivation for these changes was to correct the handling of the index parameter in the /addresses API endpoint.

Previously, the index was incorrectly fetched from path parameters, causing all requests with index to be ignored and a list of addresses instead of the queried one


Acceptance Criteria

  • The /addresses endpoint should accept the index parameter as a query string parameter, not as a path parameter.
  • If index is omitted, all addresses for the wallet should be returned.
  • If a valid index is provided, only the address at that index should be returned.
  • The serverless configuration should reflect the new query string parameter for index

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged
  • Make sure either the unit tests and/or the QA tests are capable of testing the new features
  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@andreabadesso andreabadesso self-assigned this Apr 7, 2025
@andreabadesso andreabadesso moved this from Todo to In Progress (Done) in Hathor Network Apr 7, 2025
@andreabadesso andreabadesso force-pushed the fix/address-invalid-parameter branch from 34046cd to 6e3feb9 Compare April 7, 2025 18:39
@andreabadesso andreabadesso moved this from In Progress (Done) to In Progress (WIP) in Hathor Network Apr 10, 2025
@andreabadesso andreabadesso moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Apr 16, 2025
@andreabadesso andreabadesso added the bug Something isn't working label Apr 16, 2025
@andreabadesso andreabadesso force-pushed the fix/address-invalid-parameter branch from 945701a to 32c72f8 Compare April 16, 2025 16:22
Comment on lines -327 to -330
request:
parameters:
paths:
index: false
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We would only need this block if we wanted to enforce the presence of a specific query in api gateway, which is not the case

@andreabadesso andreabadesso moved this from In Progress (Done) to In Progress (WIP) in Hathor Network Apr 25, 2025
Comment thread packages/wallet-service/package.json Outdated
pedroferreira1
pedroferreira1 previously approved these changes Apr 30, 2025
@andreabadesso andreabadesso moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Apr 30, 2025
@andreabadesso andreabadesso moved this from In Progress (Done) to In Review (WIP) in Hathor Network Apr 30, 2025
@andreabadesso andreabadesso merged commit 2bf2fb1 into master Apr 30, 2025
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Apr 30, 2025
@andreabadesso andreabadesso moved this from Waiting to be deployed to Done in Hathor Network May 9, 2025
r4mmer added a commit that referenced this pull request Jul 3, 2025
…-lib-v2.1.1

* origin/master:
  chore: bumped to v1.9.0 (#259)
  chore: nano-testnet-hackaton (#243)
  fix: address invalid parameter (#235)
  chore: added htr token seed (#256)
  fix: invalid assert in release tx proposal utxos (#251)
  fix: we should await mark utxos with proposal id to prevent a race condition (#250)
  Merge pull request #248 from HathorNetwork/feat/version-camel-case
  fix: v1.8.2-rc.3 qa issues (#246)
  fix: firebase env variables should be optional (#245)
  chore: remove error handler middleware from authorization lambda (#242)
  feat: version data validation (#241)
  fix: Mainnet release script (#203)
This was referenced Nov 17, 2025
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

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants