Skip to content

Conversation

@keyvankhademi
Copy link
Contributor

@keyvankhademi keyvankhademi commented Sep 19, 2024

Actually I think this approach is better.

@vercel
Copy link

vercel bot commented Sep 19, 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 Sep 19, 2024 3:33am
pyth-staking-v2-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 3:33am
staking-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2024 3:33am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 19, 2024 3:33am

Copy link
Contributor

@guibescos guibescos left a comment

Choose a reason for hiding this comment

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

It's weird that you can call the methods that send transactions and it won't return an error saying PythStakingClient is basically in read-only mode.
Maybe a better approach is making a class called ReadOnlyWallet that implements Wallet or AnchorWallet and throws an error if you try to sign with them?

@keyvankhademi
Copy link
Contributor Author

I like this idea. will do it in another PR soon.

@keyvankhademi keyvankhademi merged commit 88f0e18 into main Sep 19, 2024
7 checks passed
@keyvankhademi keyvankhademi deleted the default-wallet branch September 19, 2024 16:54
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