Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add solana support to contract transmitter #15869

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

huangzhen1997
Copy link
Contributor

@huangzhen1997 huangzhen1997 commented Jan 8, 2025

Jira ticket

This PR removes EVM dependent code (specifically the address encoding logic) in plugin oracle creator + contract transmitter. There will be two separate PR for refactoring CR+CW logic.

@huangzhen1997 huangzhen1997 marked this pull request as ready for review January 8, 2025 20:17
@huangzhen1997 huangzhen1997 requested a review from a team as a code owner January 8, 2025 20:17
offRampAddr = hexutil.Encode(addr)
case relay.NetworkSolana:
offRampAddr = solana.PublicKeyFromBytes(addr).String()
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to error or panic here if encounter an unknown family. That will make it explicit to developers to support a new family here too, instead of silently returning null string.

Copy link
Contributor

github-actions bot commented Jan 8, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants