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

Can not setting erc1155 if use Gasless fee. #76

Open
legiarung opened this issue Sep 29, 2022 · 0 comments
Open

Can not setting erc1155 if use Gasless fee. #76

legiarung opened this issue Sep 29, 2022 · 0 comments

Comments

@legiarung
Copy link

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

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

1 participant