We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12a35d7 + 0caef11 commit d7405e5Copy full SHA for d7405e5
2 files changed
account.go
@@ -96,7 +96,8 @@ func (a AccountMeta) less(act *AccountMeta) bool {
96
if a.IsWritable != act.IsWritable {
97
return a.IsWritable
98
}
99
- return false
+
100
+ return a.PublicKey.String() < act.PublicKey.String()
101
102
103
type AccountMetaSlice []*AccountMeta
programs/token/rpc.go
@@ -28,7 +28,6 @@ import (
28
const MINT_SIZE = 82
29
30
func (mint *Mint) Decode(data []byte) error {
31
- mint = new(Mint)
32
dec := bin.NewBinDecoder(data)
33
if err := dec.Decode(&mint); err != nil {
34
return fmt.Errorf("unable to decode mint: %w", err)
0 commit comments