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

fix(governance/xc_admin): init publishers for price store only when n… #2149

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ali-bahjati
Copy link
Collaborator

…eeded

@ali-bahjati ali-bahjati requested a review from Riateche November 27, 2024 11:18
Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 1:46pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 1:46pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 1:46pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 1:46pm
insights ⬜️ Ignored (Inspect) Visit Preview Nov 27, 2024 1:46pm

const initPublisher = async (publisherKey: PublicKey) => {
const initPublisherInPriceStore = async (publisherKey: PublicKey) => {
// Price store is only available in Pythnet and Pythtest-crosschain
if (cluster !== 'pythnet' && cluster !== 'pythtest-crosschain') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a better option would be to check if price store program is deployed on the current chain?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmm that also works. I wanted to avoid doing it for pythtest-conformance but it doesn't matter probably.

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