gemworks / gem-farm

Configurable staking for NFT Projects on Solana
https://gemfarm.gg/
MIT License
340 stars 252 forks source link

anchor build does not create gem_farm-keypair.json #25

Open purpleglow opened 2 years ago

purpleglow commented 2 years ago

I'm following instructions at https://github.com/gemworks/gem-farm#deploy-your-own-version-

After running anchor build , solana-keygen pubkey ./target/deploy/gem_farm-keypair.json fails because gem_farm-keypair.json was not created.

➜ gem-farm git:(main) ✗ solana-keygen pubkey ./target/deploy/gem_bank-keypair.json 7s9pNBAG3AyoEsZpsRJZ6WtsKBDC2Z3qGZgqfkc8pbTh ➜ gem-farm git:(main) ✗ solana-keygen pubkey ./target/deploy/gem_farm-keypair.json Error: No such file or directory (os error 2)

Jack-R-Long commented 2 years ago

I had the same issue!

purpleglow commented 2 years ago
error

Please help us @ilmoi 🙏

purpleglow commented 2 years ago

Could this error when running anchor build be the problem?

Struct field "address_to_whitelist" is unsafe, but is not documented.

(3rd line from the bottom)

Jack-R-Long commented 2 years ago

I get a similar error Struct field "farm_authority" is unsafe, but is not documented. Please add a `/// CHECK:` doc comment explaining why no checks through types are necessary. after anchor build

Jack-R-Long commented 2 years ago

Fixed the problem! Just needed to update to the most recent commit. Hope that fixes the problem for you as well @purpleglow

Note: Not sure if the bug was known to @ilmoi