ourzora / zora-protocol

Monorepo for Zora Protocol (contracts & sdks)
MIT License
125 stars 74 forks source link

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

Open roschler opened 1 week ago

roschler commented 1 week ago

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 commented 5 days ago

@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 commented 5 days ago

[image: 8ccb7d17.png]

Thanks Isaac!

On Tue, Oct 15, 2024 at 2:26 PM isaac @.***> wrote:

@roschler https://github.com/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

— Reply to this email directly, view it on GitHub https://github.com/ourzora/zora-protocol/issues/453#issuecomment-2414722578, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDR2BZJGXRXT4G62NSJFGDZ3VM5PAVCNFSM6AAAAABPZC2EY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUG4ZDENJXHA . You are receiving this because you were mentioned.Message ID: @.***>

-- Thanks, Robert Oschler Twitter: https://twitter.com/roschler http://twitter.com/roschler LinkedIn: https://www.linkedin.com/in/natlang/