Skip to content

Conversation

@aceppaluni
Copy link
Contributor

Description:
Add Set_node_account_ids() method to Query and Transaction for retrieving receipts or records.

  • Added methods to both Query and Transaction
  • Added unit test for Query
  • Added unit test for Transaction

Related issue(s):

Fixes #86

Notes for reviewer:
Ran tests for both Query and Transaction

2025-09-08 (2) 2025-09-08

Checklist

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

aceppaluni and others added 21 commits May 22, 2025 10:26
Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
…xamples

Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
Signed-off-by: dosi <dosi.kolev@limechain.tech>
@aceppaluni aceppaluni marked this pull request as ready for review September 9, 2025 14:24
Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

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

Hi @accepaluni please remember to pre-fix your PR title eg
feat: add set node account id method
additionally, we now have a changelog, which must be updated with each PR

@nadineloepfe
Copy link
Contributor

Hi @aceppaluni,
are you still working on this?
also, would you mind adding a "feat:" in front of your PR title as well as an entry in the CHANGELOG? thanks

@aceppaluni
Copy link
Contributor Author

Hi @nadineloepfe Yes, my apologies.
I have been a bit busier then normal. Of course, will do, thank you!

@aceppaluni aceppaluni changed the title Add set node account id method feat: Add set node account id method Oct 20, 2025
aceppaluni added a commit to aceppaluni/hiero-sdk-python that referenced this pull request Nov 17, 2025
…ion flow (hiero-ledger#362)

Signed-off-by: Angelina <aceppaluni@gmail.com>
@aceppaluni aceppaluni force-pushed the AddSetNodeAccountIdMethod branch from bdcc2a4 to d47b375 Compare November 17, 2025 23:14
@aceppaluni
Copy link
Contributor Author

Hi @nadineloepfe
I added the List and AccountId imports as requested. However, Codacy is reporting warnings like “Using variable 'AccountId' before assignment,” which seem to be related to the TYPE_CHECKING import. Before I change anything, I wanted to confirm whether we want to keep the AccountId import inside TYPE_CHECKING, or move it to a normal import so Codacy is satisfied?

I'm happy to apply whichever approach you prefer.
Thank you!

@nadineloepfe
Copy link
Contributor

Hi @nadineloepfe I added the List and AccountId imports as requested. However, Codacy is reporting warnings like “Using variable 'AccountId' before assignment,” which seem to be related to the TYPE_CHECKING import. Before I change anything, I wanted to confirm whether we want to keep the AccountId import inside TYPE_CHECKING, or move it to a normal import so Codacy is satisfied?

I'm happy to apply whichever approach you prefer. Thank you!

whatever makes Codacy happy :D
normal import works! thank you

aceppaluni added a commit to aceppaluni/hiero-sdk-python that referenced this pull request Nov 19, 2025
…ion flow (hiero-ledger#362)

Signed-off-by: Angelina <aceppaluni@gmail.com>
@aceppaluni aceppaluni force-pushed the AddSetNodeAccountIdMethod branch from d47b375 to d0479f0 Compare November 19, 2025 17:10
@aceppaluni
Copy link
Contributor Author

Hi @nadineloepfe and @exploreriii
Codacy is producing false positives in executable.py, saying "Using variable AccountId before assignment."
The project imports AccountId normally, so this looks like a Codacy bug.
Do you want me to suppress these warnings, adjust Codacy config, or ignore them?”

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

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

Hi @aceppaluni
Sorry i think my message did not go through

Your account id import is pointed to the incorrect path, that's probably why its not recognised

from hiero_sdk_python.account.account_id import AccountId

aceppaluni added a commit to aceppaluni/hiero-sdk-python that referenced this pull request Nov 19, 2025
…ion flow (hiero-ledger#362)

Signed-off-by: Angelina <aceppaluni@gmail.com>
@aceppaluni aceppaluni force-pushed the AddSetNodeAccountIdMethod branch from d0479f0 to ea19adf Compare November 19, 2025 19:07
@aceppaluni
Copy link
Contributor Author

Hi @exploreriii No problem.
Its still producing a false positive, should I suppress these warnings or ignore them?

Copy link
Contributor

@exploreriii exploreriii left a comment

Choose a reason for hiding this comment

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

The import is not quite right still, try this first and let's see if it improves:
from hiero_sdk_python.account.account_id import AccountId

the reason why this is correct is the account id class is inside the account file under src.

Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: Angelina <aceppaluni@gmail.com>
Signed-off-by: Angelina <aceppaluni@gmail.com>
…election

Signed-off-by: Angelina <aceppaluni@gmail.com>
…ion flow (hiero-ledger#362)

Signed-off-by: Angelina <aceppaluni@gmail.com>
@aceppaluni aceppaluni force-pushed the AddSetNodeAccountIdMethod branch from ea19adf to 948f76a Compare November 19, 2025 19:14
@aceppaluni
Copy link
Contributor Author

@exploreriii Hi, I think there is a bug somewhere. I keep trying to commit the new change but its not pushing for some reason. I'll have to figure out why

Signed-off-by: Angelina <aceppaluni@gmail.com>
@aceppaluni aceppaluni force-pushed the AddSetNodeAccountIdMethod branch from 948f76a to f521241 Compare November 19, 2025 19:17
@aceppaluni
Copy link
Contributor Author

aceppaluni commented Nov 19, 2025

@exploreriii I think I have fixed it

self.node_index: int = 0
self.payment_amount: Optional[Hbar] = None

self.node_account_ids: Optional[List[AccountId]] = None
Copy link
Contributor

@nadineloepfe nadineloepfe Nov 25, 2025

Choose a reason for hiding this comment

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

just seen - this is duplicated
there;s another self.node_account_ids on line 57. Please remove!

I've also created a branch here to see if it all works with some minor changes, see here:
https://github.com/hiero-ledger/hiero-sdk-python/pull/853/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed

mostly wanted to fix the weird error in the pipeline, hard to see what's going on

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for taking the time to clean this up and address the CI issues. I’ve reviewed the changes in your branch and they all make sense. Everything looks good from my side.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @aceppaluni
The tests here are still failing, what's the next steps? @nadineloepfe will you be working on the new branch any further, or will @aceppaluni use that for reference to update this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @exploreriii, I’m currently awaiting @nadineloepfe 's guidance on how she’d like to proceed. My understanding is that the branch she created will address the test issue and allow us to finalize this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

@exploreriii @aceppaluni: correct! the branch I've raised is passing, so if you'd like you can take inspiration there, and we can also jump on a call to walk through what has been done and why - bit easier than doing it here in writing :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nadineloepfe @exploreriii : Great! Let me know what days and times work for everyone!
I will be available at certain points today. I will not be available tomorrow. I will be available again on Friday :)

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.

Add set_node_account_ids() functionality to track executed node

4 participants