通过代理合同铸造的NFT不能从Crossmint转移

发布于 2025-01-30 18:20:12 字数 818 浏览 0 评论 0 原文

我们创建了一份代理合同,该合同最初提供了 参数,因此在现有合同上造成了NFT。

但是,一切都很好,但是,一旦完成,NFT在Crossmint上显示,我们无法将NFT转移到另一个钱包中。显示以下错误: ”在此处输入图像”

成功的薄荷交易是: https: //rinkeby.etherscan.io/tx/0x700CD7572303770232587AD04C65BB8B8B8B8B8B8B8D56F33E00CCD6D8DF0980710380BD60BD60

代理合同是这样的合同:

任何想法?

We have created a proxy contract that mints an NFT on our existing contract, as no to parameter was originally provided.

Everything works fine, however, once done and the NFT is shown on Crossmint we cannot transfer the NFT into another wallet. The following error is shown: enter image description here

The successful mint transaction was this one: https://rinkeby.etherscan.io/tx/0x700cd7572303770232587ad04c65bb8b8d56f33e00ccd6d8df0980710380bd60

The proxy contract is this one:
https://rinkeby.etherscan.io/address/0xC36DB9076D0F662c9945fbd005Ea260B5259521c

Any idea what is going wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遮了一弯 2025-02-06 18:20:12

可能值得研究的是您的 crossmint 方法,因为我认为在此处如何布置逻辑可能存在问题。

您可能会看到的一件事是您尝试转移令牌的行。您的来自参数的是地址(this),实际上是指您的代理地址,而不是您的 oefbcontract 地址。我会将其更改为您的原始合同地址,看看是否有所作为。

    function crossmint(address to, uint8 amount) external payable {
        uint256 total = oefbContract.totalSupply();
        oefbContract.mintNFT{value: msg.value}(amount);

        for (uint256 i = 0; i < amount; i++) {
            oefbContract.transferFrom(address(this), to, total + i);
        }
    }

Something that might be worth looking into is your crossmint method as I think there may be an issue with how the logic is layed out in here.

One thing you might look at is the line where you attempt to transfer your token. Your from parameter is using address(this) which is actually referring to your proxy address and not your oefbContract address. I would change this to your original contract address and see if this makes a difference.

    function crossmint(address to, uint8 amount) external payable {
        uint256 total = oefbContract.totalSupply();
        oefbContract.mintNFT{value: msg.value}(amount);

        for (uint256 i = 0; i < amount; i++) {
            oefbContract.transferFrom(address(this), to, total + i);
        }
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文