The docs at https://yihau.gitbook.io/solana-go/tour/transfer-1 currently demonstrates token transfers using system.transfer, which is incorrect for token transfers. This method is appropriate for SOL transfers but not for other tokens.
Current Behavior
The docs shows:
sysprog.Transfer(sysprog.TransferParam{
From: alice.PublicKey,
To: common.PublicKeyFromString("2xNweLHLqrbx4zo1waDvgWJHgsUpPj8Y8icbAFeR4a8i"),
Amount: 1e9,
})
The docs at https://yihau.gitbook.io/solana-go/tour/transfer-1 currently demonstrates token transfers using
system.transfer
, which is incorrect for token transfers. This method is appropriate for SOL transfers but not for other tokens.Current Behavior
The docs shows:
Expected Behaviour