gagliardetto / solana-go

Go SDK library and RPC client for the Solana Blockchain
Apache License 2.0
943 stars 267 forks source link

Create ATA: extra param? #126

Open 0x0ece opened 1 year ago

0x0ece commented 1 year ago

I was wondering if there's a reason for this extra SysVarRent account: https://github.com/gagliardetto/solana-go/blob/main/programs/associated-token-account/Create.go#L50-L51

From Solana code it doesn't seem necessary (nor it's used): https://github.com/solana-labs/solana-program-library/blob/master/associated-token-account/program/src/instruction.rs#L16-L25