Skip to content

Commit 332c508

Browse files
committed
Updated source chain config fetch logic
1 parent 13e3460 commit 332c508

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/solana/ccip/chainaccessor/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ func (a *SolanaAccessor) getOffRampSourceChainConfigs(ctx context.Context, sourc
133133
var sourceChain offramp.SourceChain
134134
err = a.client.GetAccountDataBorshInto(ctx, sourceChainPDA, &sourceChain)
135135
if err != nil {
136-
return nil, fmt.Errorf("failed to get offramp reference addresses account: %w", err)
136+
// TODO: Do we want to return what we can or is a failure to find a source chain config here something we should break at.
137+
// The feed chain selector seems to be included in the list so continuing seems the right move
138+
a.lggr.Debugw("could not find source chain config for selector", "selector", selector)
139+
continue
137140
}
138141

139142
a.lggr.Debugw("fetching source chain config", "sourceChainSelector", selector, "offramp", offrampAddr.String(), "sourceChainPDA", sourceChainPDA.String(), "sourceChain", sourceChain)

0 commit comments

Comments
 (0)