-
Notifications
You must be signed in to change notification settings - Fork 56
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
Improve logging API and usage in the cmd package #300
Comments
More loose thoughts:
|
For error stack traces, we can use this PR and refactor it: We cannot use the standard library's errors and instead have to import
Agreed
This has also introduced a bug because if you set |
Hey Another request would be to format addresses with Mixed-case checksum encoding (ERC-55) Right now, copy/pasting Medusa's logs to Solidity does not compile. Example: 1) CryticTester.deposit(address,uint256)(0x470c8b323b89c05bbb0f2a85d733cc7004883d14, 45) (block=2, time=159480, gas=12500000, gasprice=1, value=0, sender=0x0000000000000000000000000000000000010000)
2) CryticTester.withdraw(address,uint256)(0x00000000000000000000000000000000002fef7c, 70880928519027259232681487313122362188527844215780522898084047764600190669520) (block=12543, time=672109, gas=12500000, gasprice=1, value=0, sender=0x0000000000000000000000000000000000010000) function test_CryticToFoundry_12() public {
deposit(0x470c8b323b89c05bbb0f2a85d733cc7004883d14, 45);
withdraw(0x00000000000000000000000000000000002fef7c, 70880928519027259232681487313122362188527844215780522898084047764600190669520);
}
|
But yeah idk, my thoughts are here, maybe it makes sense to log to it in case we access the logger elsewhere or for some other purpose (would this even be useful to us if we did?). 🤷
Originally posted by @Xenomega in #216 (comment)
The text was updated successfully, but these errors were encountered: