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

Instructions to deploy your own version are a bit misleading #65

Open
0xnetfox opened this issue Mar 29, 2022 · 1 comment
Open

Instructions to deploy your own version are a bit misleading #65

0xnetfox opened this issue Mar 29, 2022 · 1 comment

Comments

@0xnetfox
Copy link

0xnetfox commented Mar 29, 2022

Sorry if the title is clickbait, I didn't know how to call it hehe

The issue is that on the readme instructions on deploying your own version, it's specified that you need to change the program IDs on src/index.ts. So, a user after deploying the programs and replacing the IDs, would expect that launching the gem-farm app on local results in it pointing to their deployed version.

This is false since the gem-farm app is pulling the SDK from the NPM repository, not from the local source. This means the user is still interacting with the version deployed by @ilmoi even tho they changed the IDs that they needed to change as per the documentation.

This is even more aggravating now since creating a farm costs 2.5 sol and if they don't know how to remove that fee from the rust code, it's just money being paid for errors that could be avoided.

A solution to this would be appreciated as I've seen a few users that have committed this mistake already.
On the meantime, if anyone needs a fix, I forked the repository and made all the imports from the gem-farm app point to the local SDK, so if you change the IDs on src/index.ts it will take effect.

https://github.com/nf0x/gem-farm

@0xnetfox
Copy link
Author

For anyone interested, this issue is what the error:

{code: 3007, msg: "The given account is owned by a different program than expected"}

Is usually referring to

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

No branches or pull requests

1 participant