Skip to content

Commit 756c393

Browse files
authored
Merge pull request OneKeyHQ#36 from taimanhui/sol-token
fix(solana): rename verifyAssociatedTokenAddress
2 parents c969dbf + 70bacd5 commit 756c393

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/provider/chains/sol/provider.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,10 @@ class Provider extends BaseProvider {
209209
isValid,
210210
};
211211
}
212-
/***
213-
* Note: this method is used to verify associatedTokenAddress instead of mintAddress(if mintAddress use verifyAddress or getTokenInfos instead)
214-
*
215-
*/
216-
async verifyTokenAddress(address: string): Promise<AddressValidation> {
212+
213+
async verifyAssociatedTokenAddress(
214+
address: string,
215+
): Promise<AddressValidation> {
217216
const result = await this.verifyAddress(address);
218217
if (result.isValid) {
219218
const isOnCurve = PublicKey.isOnCurve(bs58.decode(address));

0 commit comments

Comments
 (0)