raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
50 stars 31 forks source link

Connect wallet first while calling execute #2

Closed mehranml closed 5 months ago

mehranml commented 5 months ago

i getting Uncaught (in promise) Error: please connect wallet first when i try call execute on raydium.clmm.openPositionFromBase as example

cruzshia commented 5 months ago

replace <YOUR_WALLET_SECRET_KEY> in config.ts.

export const owner: Keypair = Keypair.fromSecretKey(bs58.decode('<YOUR_WALLET_SECRET_KEY>'))