-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: simplify TronTransaction raw transaction handling and remov… #126
Changes from all commits
c9b3c8a
54e18d3
aaae4c4
d983fa7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -257,6 +257,12 @@ Future<UTXOTxInfo> fetchUTXOTransactions({ | |||||||||||||||||||||
min: minEndpoints, | ||||||||||||||||||||||
); | ||||||||||||||||||||||
|
||||||||||||||||||||||
print( | ||||||||||||||||||||||
"Selected ${endpoints.map( | ||||||||||||||||||||||
(e) => "$e", | ||||||||||||||||||||||
)}", | ||||||||||||||||||||||
); | ||||||||||||||||||||||
|
||||||||||||||||||||||
Comment on lines
+260
to
+265
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Replace print statement with Logger utility The code already imports and uses a Logger utility throughout the file (e.g., - print(
- "Selected ${endpoints.map(
- (e) => "$e",
- )}",
- );
+ Logger.log(
+ "Selected ${endpoints.map(
+ (e) => "$e",
+ )}",
+ ); 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||
final isolateManager = IsolateManager(); | ||||||||||||||||||||||
|
||||||||||||||||||||||
/// | ||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a null or empty-check for rawTx.contract to prevent runtime errors.
If rawTx.contract is empty, calling rawTx.contract.first will cause an out-of-range error. Consider adding a guard clause before accessing .first.
Proposed fix: