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

IPFS urls are incorrectly converted. #5

Open
wertercatt opened this issue Mar 15, 2022 · 0 comments
Open

IPFS urls are incorrectly converted. #5

wertercatt opened this issue Mar 15, 2022 · 0 comments

Comments

@wertercatt
Copy link

[wertercatt@RGBeast flipper]$ cat .env
IPFS="http://127.0.0.1:8080/ipfs/"
RPC="https://mainnet.infura.io/v3/[secret-removed]"
CONTRACT="0x3b3ee1931dc30c1957379fac9aba94d1c48a5405"

# Optional for automatic uploading of metadata (requires pinFileToIPFS perm)
PINATA_JWT=""

When given the tokenURI 'https://ipfs.foundation.app/ipfs/QmXBC4K9SiZaqbRMEpCaDu8322gVLj5fKRiDTvbziJh62N/metadata.json' the script saves the contents of '$IPFS/QmXBC4K9SiZaqbRMEpCaDu8322gVLj5fKRiDTvbziJh62N' to the token JSON file (resulting in it just containing the HTML directory page) instead saving the contents of "$IPFS/QmXBC4K9SiZaqbRMEpCaDu8322gVLj5fKRiDTvbziJh62N/metadata.json' to the file as it should.

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