Skip to content

Can not setting erc1155 if use Gasless fee. #76

Open
@legiarung

Description

@legiarung

My code setting :

const claimConditions = [
			{
				startTime: new Date(startTime),
				maxQuantity: maxQuantity == 0? 'unlimited': maxQuantity,
				price,
				currencyAddress,
				waitInSeconds: MaxUint256,
				quantityLimitPerTransaction: 1,
				snapshot: snapshot?.length > 0? snapshot: undefined
			}
		]
		switch (contractType) {
			case 'edition-drop':
				contract = sdk.getEditionDrop(currentContractId)
				return await contract?.claimConditions.set(tokenId, claimConditions)
			case 'nft-drop':
				contract = sdk.getNFTDrop(currentContractId)
				return await contract.claimConditions.set(claimConditions)
			default:
				break;
		}

<img width="853" alt="Screen Shot 2022-09-29 at 9 00 16 AM" src="https://user-images.githubusercontent.com/28915036/192921417-b8ca18e8-c595-4961-8e35-b1cae17d22cb.png">

This is true if paying with metamask , but when using gasless and openzeplin the following error occurs . Permission is required for the address 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

Transaction below:
https://rinkeby.etherscan.io/tx/0x7c01f1fa66e73ce9fca5404f0f652b96c423530e2cc9f1cc1cc8fc2836cbb7a6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions