Conversation
# Conflicts: # lib/utils/metadata.dart
|
Thanks for the substantial this PR. The overall direction looks good. I (codex 5.6-sol) found four issues that should be addressed before merging:
All current CI checks are green, but these cases are not covered by the existing tests. I recommend adding widget coverage for disabling Utility and changing decimals after entering supply values, plus tests for favorite-storage failure after publication and multi-page search. |
I've fixed and added tests for all the issues, with the exception of the second one. I couldn't replicate it. If I understand correctly, there is an issue when adding a new token to the favorites box, after you receive the transaction that follows issuing a new token. I manually tested that scenario and everything went on without an error. Maybe ask Sol to reevaluate the scenario. |
|
Thanks — I rechecked the current head. The fixes and tests for issues 1, 3, and 4 look good. Issue 2 is still present, but it will not appear during a normal manual test because the favorites write usually succeeds. It concerns the failure boundary after the transaction has already been published.
This can be reproduced deterministically in the existing bloc test: when(
() => favoriteTokensBox.add(any()),
).thenThrow(Exception('storage failed'));Dispatching I recommend separating transaction submission from post-success local side effects, or catching the favorites-write error separately and still emitting |
This is fixed now. |
|
Thanks for the latest updates. The earlier issues around the utility checkbox, decimals validation, pagination, and persistence-error handling appear resolved. I found two remaining issues:
The current CI checks are green, but I think these two functional issues should be addressed before merging. |
|
I've fixed the issues, but added a TODO to the _sortTokens function. I thing that the sorting of tokens, to show favorite ones before the others, does more harm than good. The automatic sorting should not happen, it should be a user intended, with a clear UI; using sort arrows for table columns, for example. We can discuss about what to do with it later. |

A small summary of this PR: