Skip to content

Commit

Permalink
adding stuff for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yashnevatia committed Jan 8, 2025
1 parent 754f858 commit 040ca48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
11 changes: 3 additions & 8 deletions deployment/ccip/changeset/cs_deploy_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func TestDeployCCIPContracts(t *testing.T) {
fmt.Println(string(b))
}

func TestYash(t *testing.T) {
// IGNORE
func TestSolanaKeygen(t *testing.T) {
privateKey, _ := solana.NewRandomPrivateKey()
fmt.Println(privateKey.String())

Expand Down Expand Up @@ -159,14 +160,8 @@ func TestYash(t *testing.T) {
return
}

// if err := os.WriteFile(outputFilePath, privateKeyBytes, 0600); err != nil {
// fmt.Printf("Error writing keypair to file: %v\n", err)
// return
// }

pk, err := solana.PrivateKeyFromSolanaKeygenFile(outputFilePath)
require.NoError(t, err)
fmt.Println(pk.String())

// fmt.Printf("Keypair JSON successfully written to: %s\n", outputFilePath)
require.Equal(t, pk.String(), privateKey.String())
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[101,238,189,81,99,141,117,176,11,49,33,2,218,239,163,125,209,246,2,133,177,222,143,89,48,80,244,247,247,141,216,183,145,28,85,130,47,80,170,11,121,40,143,49,171,88,54,235,39,125,182,141,1,69,71,62,148,230,124,191,22,218,25,173]
Binary file not shown.
2 changes: 1 addition & 1 deletion deployment/solana_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
deployBinPath = "/Users/yashvardhan/chainlink-ccip/chains/solana/contracts/target/deploy"
deployBinPath = "./internal/solana_contracts"
// keypairPath = "/Users/yashvardhan/.config/solana/id.json" //wallet
)

Expand Down

0 comments on commit 040ca48

Please sign in to comment.