-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: let prettyLogTransaction function to support address mapping #39
base: main
Are you sure you want to change the base?
Conversation
Hello, this is a nice suggestion, however I think a different implementation is in order. |
Summary:This PR introduces enhancements to the transaction logging functionality by adding support for optional address and operation code (op) mapping. These changes allow developers to provide custom mapping functions to make transaction logs more human-readable without altering the underlying data. Changes Introduced:
Motivation:This change provides more flexibility in transaction logging, making the logs easier to read and understand for developers who work with mapped addresses or operation codes. It also ensures that if no mapping is provided, the default logging behavior remains intact. Backwards Compatibility:
|
…nd printing utilities, remove Maybe type
@krigga Thanks for your advice! I have made the suggested modifications, ensuring that mapping is now handled using a function for better scalability and flexibility. |
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.
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.
hi |
Hi |
Description
As a Tact / funC smart contract developers, when I want to conduct a deeper check if the test failed, I would like to use
prettyLogTransactions
to show the TON transfer flow. However, the output of the original prettyLogTransactions contains only addresses, in some scenarios that more than 10 addresses involved in is indeed hard to debug. Thus, I wish to have a optional address mapping mechanism to help me tagging those addresses to be easily to understand with a nickname.Type of change
Please delete options that are not relevant.
Checklist: