You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
A creator want to put several works on sale but does not want to pay for all the minting-gas-costs up front. Only if a buyer actually wants to buy a work, they should pay for the gas. The creator should be correctly set as the Cryptomedia's creator, but the newly minted token should be directly assigned to the first buyer. Furthermore, the price for that token should be paid during this transaction also.
Another possibility would be to make permit deterministic. Instead of identifying a token with it's tokenId, you could identify it with it's hash:
function permit(
addressspender,
uint256tokenId,
EIP712Signature memorysig
)
to
function permit(
addressspender,
bytes32tokenHash,
EIP712Signature memorysig
)
Having these changes, the creator could give two signatures to the future minter: Permit and MintWithSig. That would be already possible, as long as no other token is minted between the two transactions.
Another downside of this approach is, that the buyer needs to make two transactions to receive the NFT.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
A creator want to put several works on sale but does not want to pay for all the minting-gas-costs up front. Only if a buyer actually wants to buy a work, they should pay for the gas. The creator should be correctly set as the Cryptomedia's creator, but the newly minted token should be directly assigned to the first buyer. Furthermore, the price for that token should be paid during this transaction also.
Possible Solution
Introduce a new function:
And the following MintAndBuyWithSig:
Like this it will be possible to mint and buy a Cryptomedia in one transaction. The creator has still the possibility to set the price.
The text was updated successfully, but these errors were encountered: