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

Created cache file with png 0 and json 0 but still get not init warning #11

Open
1Crypt0 opened this issue Jan 2, 2022 · 3 comments
Open

Comments

@1Crypt0
Copy link

1Crypt0 commented Jan 2, 2022

Hi Enrico,
Thanks for sharing this!

I see an error when first running this tool about funds and then re-running I get the init error, any ideas please? :)

'Transfer: insufficient lamports 1352748523, need 16713695280',
'Program 11111111111111111111111111111111 failed: custom program error: 0x1

Cache file .cache\mainnet-beta-temp is not initialized with a candy machine program

@0xStabby
Copy link

0xStabby commented Jan 3, 2022

Looks like Metaplex is now adding a file extension onto the .cache/mainnet-beta-temp and making it .cache/mainnet-beta-temp.json and that's why it's failing, because it can't find it.

@0xEnrico
Copy link
Owner

0xEnrico commented Jan 3, 2022

As I commented, your pull request is correct, but to be on the safe side, I would like to support both previous filename without .json and the new filename with .json.

So I made this fix, which first tries without the .json extension, then tries with the .json extension: 3acbd91

Please let me know if it works correctly, as I can't test it directly.

@0xStabby
Copy link

0xStabby commented Jan 3, 2022

Ah, I didn't think of that. Great! It works.

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

3 participants