I am getting an error
TypeError: connection.getAccountInfo is not a function
at getAccount (account.ts:102:1)
in method getOrCreateAssociatedTokenAccount()
my parameters are
const fromTokenAccount1 = await getOrCreateAssociatedTokenAccount(
connection,
publicKey,
mint1,
publicKey,
signTransaction
);
Mint is USDC mint address, publickey i am getting from useWallet()
for the sender. connection is mainnet
.
Can please where I am doing wrong?