Skip to content

Commit

Permalink
Add some comments about the toSolidityAddress function
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Bertone <giuseppe.bertone@swirldslabs.com>
  • Loading branch information
Neurone committed Mar 25, 2024
1 parent 5467a47 commit db36ceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/account/AccountId.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ export default class AccountId {
}

/**
* @description Statically compute the EVM address. Use only with non-native EVM accounts.
* If the account is EVM-native, the EVM address depends on the public key and is not directly related to the account ID.
* @returns {string}
*/
toSolidityAddress() {
Expand Down

0 comments on commit db36ceb

Please sign in to comment.