GraphemeNFT / rarible-scaffold

MIT License
0 stars 0 forks source link

bug on generating IPFS address #26

Closed dcsan closed 3 years ago

dcsan commented 3 years ago

rollToMint causes these output errors

image

plus chain errors

eth_accounts (2)
eth_call
  Contract call:       YourCollectible#tokenURI
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9

eth_accounts (2)
eth_call
  Contract call:       YourCollectible#tokenOfOwnerByIndex
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9

eth_accounts (2)
eth_call
  Contract call:       YourCollectible#tokenURI
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9

eth_accounts (2)
eth_call
  Contract call:       YourCollectible#tokenOfOwnerByIndex
  From:                0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  To:                  0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9
dcsan commented 3 years ago

image

anyway added a button to call that on webUI, but it doesn't pass an IPFS hash.

tomosaigon commented 3 years ago

rollToMint should not be passed an ipfs hash.

It's not needed until Claim.

dcsan commented 3 years ago

yeah it's not being passed an IPFS hash.

https://github.com/GraphemeNFT/rarible-scaffold/blob/rarible-local/packages/react-app/src/components/Mint.jsx#L55

i just left the field there as 'Mint' still takes it.

but not sure where that code above is triggered from, possibly some hook?

so rollToMint doesn't seem to add anything to your wallet, mint does, perhaps its failing due to that IPFS glitch

dcsan commented 3 years ago

rendering was broken when IPFS hash didn't exist.