Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yashnevatia committed Jan 8, 2025
1 parent 62d0e00 commit 7e3b169
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions deployment/ccip/changeset/solana_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/gagliardetto/solana-go"

"github.com/smartcontractkit/chainlink/deployment"
)

Expand All @@ -26,18 +27,16 @@ func LoadOnchainStateSolana(e deployment.Environment) (CCIPOnChainState, error)
addresses, err := e.ExistingAddresses.AddressesForChain(chainSelector)
if err != nil {
// Chain not found in address book, initialize empty
if errors.Is(err, deployment.ErrChainNotFound) {
addresses = make(map[string]deployment.TypeAndVersion)
} else {
if !errors.Is(err, deployment.ErrChainNotFound) {
return state, err
}
addresses = make(map[string]deployment.TypeAndVersion)
}
chainState, err := LoadChainStateSolana(chain, addresses)
if err != nil {
return state, err
}
state.SolChains[chainSelector] = chainState

}
return state, nil
}
Expand Down

0 comments on commit 7e3b169

Please sign in to comment.