-
Notifications
You must be signed in to change notification settings - Fork 141
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
Lotus: fix eth address to f4 conversions #1030
Comments
@Stebalien after checking all the occurrences of |
I filed this because I fixed a few cases long ago but didn't do an audit. If you've done a more thorough audit, we can consider this done. Thanks! |
@Stebalien I still pushed a PR that changed all the NewDelegatedAddress to ToFilecoinAddress(). It doesn't make much difference in functionality but creates f4 addresses more consistently. Do you think this should be merged? |
I think it makes sense anyways just for consistency. Otherwise, someone is likely to copy code and get it wrong. |
Merged in filecoin-project/lotus#9970. |
We have several places where we're directly constructing a "delegated" address from an eth address where we should be calling
api.EthAddress(...).ToFilecoinAddress()
(to correctly handle ID addresses).The text was updated successfully, but these errors were encountered: