You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this function get_associated_token_address(owner: Pubkey, mint: Pubkey, token_program_id: Pubkey = TOKEN_PROGRAM_ID), the parameters are inversed (mint and owner) compared to the exact same function from solana/web.js export function getAssociatedTokenAddressSync( mint: PublicKey, owner: PublicKey, allowOwnerOffCurve = false, programId = TOKEN_PROGRAM_ID, associatedTokenProgramId = ASSOCIATED_TOKEN_PROGRAM_ID )
This is very confusing and lead to mistake when trying to replicate JS example in Python
The text was updated successfully, but these errors were encountered:
clmentcoutet
changed the title
get_associated_token_address() parameters reversed from solana/web3.js
get_associated_token_address() parameters reversed compared to solana/web3.js
Nov 25, 2024
In this function
get_associated_token_address(owner: Pubkey, mint: Pubkey, token_program_id: Pubkey = TOKEN_PROGRAM_ID)
, the parameters are inversed (mint and owner) compared to the exact same function from solana/web.jsexport function getAssociatedTokenAddressSync( mint: PublicKey, owner: PublicKey, allowOwnerOffCurve = false, programId = TOKEN_PROGRAM_ID, associatedTokenProgramId = ASSOCIATED_TOKEN_PROGRAM_ID )
This is very confusing and lead to mistake when trying to replicate JS example in Python
The text was updated successfully, but these errors were encountered: