Skip to content

Commit

Permalink
address unsupported chain family
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Jan 8, 2025
1 parent a62c1dc commit 0a7f725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/capabilities/ccip/oraclecreator/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ func encodeOffRampAddr(addr []byte, chainFamily string) string {
offRampAddr = hexutil.Encode(addr)
case relay.NetworkSolana:
offRampAddr = solana.PublicKeyFromBytes(addr).String()
default:
panic(fmt.Errorf("unsupported chain family: %s", chainFamily))
}

return offRampAddr
Expand Down

0 comments on commit 0a7f725

Please sign in to comment.