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

Add payable gas optimization #418

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Conversation

Vectorized
Copy link
Collaborator

@Vectorized Vectorized commented Aug 28, 2022

Based on https://eips.ethereum.org/EIPS/eip-721, the following functions can be made payable.

  • safeTransferFrom
  • transferFrom
  • approve

Saves 24 gas for transferFrom.

Oh, poll here: https://twitter.com/optimizoor/status/1563757003809648640

A potential use case is for paid pull-based transfers.

Tbh, this isn't that useful for royalties (anyone can do the trick described in https://twitter.com/optimizoor/status/1563806550971412480 to "enforce" royalties way more effectively via sheer inconvenience).

@Vectorized Vectorized requested a review from cygaar August 28, 2022 05:09
@z0r0z
Copy link

z0r0z commented Aug 29, 2022

I think this makes sense. This follows the EIP and accommodates royalties. Also save that sweet sweet gas.

@Vectorized Vectorized merged commit f717c7a into chiru-labs:main Sep 5, 2022
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

Successfully merging this pull request may close these issues.

3 participants