Skip to content

Commit 417fd65

Browse files
committed
move solana to spl to prevent name conflicts
1 parent ccb4c66 commit 417fd65

13 files changed

Lines changed: 4 additions & 3 deletions

api/solana/programs/reward_manager/ChangeManagerAccount.go renamed to api/spl/programs/reward_manager/ChangeManagerAccount.go

File renamed without changes.
File renamed without changes.

api/solana/programs/reward_manager/CreateSenderPublic.go renamed to api/spl/programs/reward_manager/CreateSenderPublic.go

File renamed without changes.
File renamed without changes.

api/solana/programs/reward_manager/DeleteSenderPublic.go renamed to api/spl/programs/reward_manager/DeleteSenderPublic.go

File renamed without changes.

api/solana/programs/reward_manager/EvaluateAttestations.go renamed to api/spl/programs/reward_manager/EvaluateAttestations.go

File renamed without changes.

api/solana/programs/reward_manager/EvaluateAttestations_test.go renamed to api/spl/programs/reward_manager/EvaluateAttestations_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/hex"
55
"testing"
66

7-
"bridgerton.audius.co/api/solana/programs/reward_manager"
7+
"bridgerton.audius.co/api/spl/programs/reward_manager"
88
"github.com/gagliardetto/solana-go"
99
"github.com/stretchr/testify/require"
1010
)
File renamed without changes.

api/solana/programs/reward_manager/SubmitAttestation.go renamed to api/spl/programs/reward_manager/SubmitAttestation.go

File renamed without changes.

api/solana/programs/reward_manager/instruction.go renamed to api/spl/programs/reward_manager/instruction.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"encoding/hex"
66
"fmt"
7+
"strings"
78

89
bin "github.com/gagliardetto/binary"
910
"github.com/gagliardetto/solana-go"
@@ -136,7 +137,7 @@ func deriveAuthority(programId solana.PublicKey, state solana.PublicKey) (solana
136137
func deriveSender(programId solana.PublicKey, authority solana.PublicKey, ethAddress string) (solana.PublicKey, uint8, error) {
137138
senderSeedPrefix := []byte(SenderSeedPrefix)
138139
// Remove 0x and decode hex
139-
decodedEthAddress, err := hex.DecodeString(ethAddress[2:])
140+
decodedEthAddress, err := hex.DecodeString(strings.TrimPrefix(ethAddress, "0x"))
140141
if err != nil {
141142
return solana.PublicKey{}, 0, err
142143
}

0 commit comments

Comments
 (0)