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

Transaction revert when using the Protocol Rewards Demo repo? #453

Open
roschler opened this issue Oct 11, 2024 · 2 comments
Open

Transaction revert when using the Protocol Rewards Demo repo? #453

roschler opened this issue Oct 11, 2024 · 2 comments

Comments

@roschler
Copy link

I need a little tech help. I am working with the Protocol Rewards Demo:

https://github.com/oveddan/protocol-rewards-demo

I had to get a Conduit API key to get past an "invalid key" error I was getting from the RPC endpoint. It appears that the Protocol Rewards Demo does a test query with the ERC721 minting transaction details before you even hit the Mint button. I am using the following smart contract address on the Zora Sepolia network for testing:

0x4FdE4E68f6eA3DB124123178e8581d2A2855c0AF

Unfortunately that results in the following error, that doesn't have much detail on how to solve the problem:

Execution reverted for an unknown reason. Raw Call Arguments: from: 0x69483B6dd8Ff29d9f110463c41516577839EBBf6 to: 0x4FdE4E68f6eA3DB124123178e8581d2A2855c0AF value: 0.002331 ETH data: 0x4536818100000000000000000000000069483b6dd8ff29d9f110463c41516577839ebbf600000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000080000000000000000000000000917dc724b63389e9140c9534ab6902d3390a054400000000000000000000000000000000000000000000000000000000000000106d7920617765736f6d6520746f6b656e00000000000000000000000000000000 Contract Call: address: 0x4FdE4E68f6eA3DB124123178e8581d2A2855c0AF function: mintWithRewards(address recipient, uint256 quantity, string comment, address mintReferral) args: (0x69483B6dd8Ff29d9f110463c41516577839EBBf6, 3, my awesome token, 0x917dC724b63389e9140C9534ab6902D3390a0544) sender: 0x69483B6dd8Ff29d9f110463c41516577839EBBf6

Am I using the right smart contract address and test network? Or am I supposed to be using the Zora Goerli network? If I need to switch to Goerli, then if you could give me the correct Metamask parameters, especially the chain ID and minting smart contract address, then that would be a big help.

If it's something else, then let me know. Any ideas on how I can fix this? I looked at the docs on minting:

https://docs.zora.co/protocol-sdk/collect/mint

But I don't see any mention on the page on what the correct parameters are for the different networks (MainNet, Zora Sepolia, Zora, Goerli) and the correct smart contract hashes for the ERC721 minting contract.

@isaaczaak
Copy link
Contributor

@roschler here are the factory addresses: https://docs.zora.co/contracts/factories

we also recommend that you use our Creator Client: https://docs.zora.co/protocol-sdk/creator/onchain

@roschler
Copy link
Author

roschler commented Oct 15, 2024 via email

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

2 participants