Repository navigation
Rename PublicKeys->Address everywhere #3817
Closed
dhl
started this conversation in
Web3.js v3
Replies: 2 comments 4 replies
|
@dhl After having used v3 a bit, I'd lean towards not renaming
A few reasons why:
End of the day, I just don't think we gain anything by forcing the rename here. And I think we lose on devex. (edit: drop |
4 replies
|
We conceded to re-renaming back to Address class to PublicKey by accepting #3870, as we would not be able to get V3 published otherwise. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
V3 follows the ecosystem move to rename PublicKey to Address.
While the class name was changed, public key is still featured prominently throughout the codebase, in type names (
GetLargestAccountsWithPublicKeys), parameters (async getBalanceAndContext(publicKey: Address, ...=)), and fields (type ConfigKey = { publicKey: Address; isSigner: boolean; }).The rename in type name and parameter list is mostly just cosmetic. We should consider whether the impact to property names is worth the trouble.
All reactions