Looking to airdrop ERC1155 Claim Page and can’t find the option

Hi everyone,

I’ve create a 1155 creator contract and a Claim Page for a token. I wish to airdrop few of them but I can’t find the option on the studio.

Documentation said that the button will appear on the overview page. Do I miss something?

Thanks

Gm! Can you provide a link to the claim and your wallet address you use to login to studio?

Hi Lyndo,

Here is the address of the claim page: WWWelcome Pass #1 I use diapo.eth (0x81384243bb94855b87C23901f8e1dF70BbaF5B4d).

thanks

I had a look of the smart contract, not sure it’s doable… as in 1155 mintBaseExisting can’t be call it the token is created through an extension, and in the extension, the mintX method are both payable…

In the creator

function mintExtensionExisting(address[] calldata to, uint256[] calldata tokenIds, uint256[] calldata amounts) public virtual override nonReentrant extensionRequired {
        for (uint i = 0; i < tokenIds.length; i++) {
            require(_tokensExtension[tokenIds[i]] == address(msg.sender), "A token was not created by this extension");
        }
        _mintExisting(msg.sender, to, tokenIds, amounts);
    }

meaning that only the extension can call this method.

function mintBaseExisting(address[] calldata to, uint256[] calldata tokenIds, uint256[] calldata amounts) public virtual override nonReentrant adminRequired {
        for (uint i = 0; i < tokenIds.length; i++) {
            require(_tokensExtension[tokenIds[i]] == address(this), "A token was created by an extension");
        }
        _mintExisting(address(this), to, tokenIds, amounts);
    }

for this one only the token created on this contract can be minted…

EDIT:
I just discover this smart contract (https://etherscan.io/address/0x44e94034AFcE2Dd3CD5Eb62528f239686Fc8f162#code) that have an airdrop method.

Any update on this point ? I think the airdrop was added after I activate the Claim app? Any action I can make to activate this option?

Edit:
I cannot update the claim page anymore

An error occurred executing the transaction: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted: Cannot decrease walletMax", method="estimateGas", transaction={"from":"0x81384243bb94855b87C23901f8e1dF70BbaF5B4d","to":"0x4e32004D8b81847A670b4a1778ACe4dCF2bBA01E","data":"0xa310099c000000000000000000000000b4d4084340a64f5165983ad09b68f6dc95e2dd58000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063d99d7000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000003782dace9d9000000000000000000000000000081384243bb94855b87c23901f8e1df70bbaf5b4d000000000000000000000000000000000000000000000000000000000000002b6767716e66524f5a5176304554375268684b692d6f5f34383538735277506f495a324d47555469324b6b59000000000000000000000000000000000000000000","accessList":null}, error={"code":-32603,"message":"execution reverted: Cannot decrease walletMax","data":{"originalError":{"code":3,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001943616e6e6f742064656372656173652077616c6c65744d617800000000000000","message":"execution reverted: Cannot decrease walletMax"}}}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.0)

Ok so everything is in order… I had to create a new claim which was minted with the new extension. I edited the previous one (finally it works through the interface). So I can close this thread.

EDIT:
A last things… could you invalidate cache on the claim page: WWWelcome Pass #1

Thanks