Skip to content

Commit 70bacd5

Browse files
committed
fix(solana): rename verifyAssociatedTokenAddress
verifyTokenAddress is used to verify token addresses on network, so this one should be renamed.
1 parent c969dbf commit 70bacd5

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)