Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Per wallet application #138

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open

Per wallet application #138

wants to merge 74 commits into from

Conversation

eprbell
Copy link
Owner

@eprbell eprbell commented Jan 13, 2025

Full implementation of per-wallet transfer analysis (discussed at #135) including comprehensive unit tests. This covers all the corner cases I was able to find. If you find a corner case that is not covered by a unit tests do let me know. Note that unit tests use Go style, table-driven format: this format is far superior to custom code and I think we should be using it for all new unit tests. Essentially it makes tests very easy to read and maintain: even non programmers could potentially read them and contribute ideas for new ones.

See an example of how to read and reason about RP2 Go-style unit tests here.

The code is essentially ready for review (except for a few minor lint issues).

@eprbell
Copy link
Owner Author

eprbell commented Feb 2, 2025

Fixed a bug in fee handling during transfer analysis. Also added check of actual amounts in tests.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants