jup-ag / jupiter-swap-api

The jupiter swap api binary
72 stars 20 forks source link

bug: custom destinationTokenAccount is not writable #25

Closed josephinfinex closed 1 month ago

josephinfinex commented 3 months ago

please refer to transaction https://solscan.io/tx/63P8GP1nD8TZeVeEYHPtK7znfLnpJAVsFBZvCD2y2Qgno3EuUaPgSujJjSPSTYLo4MhMvidCudY3KgKjrkc6SgPu

when the destinationTokenAccount is set, it got a writable privilege escalated error Screenshot 2024-05-27 at 3 54 08 pm. as per screenshot, the accountmeta for the destination token account is incorrectly set as readonly

siong1987 commented 1 month ago

should be fixed.