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

fix: change mutability of example ERC721 interface #3076

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

cairoeth
Copy link
Contributor

Arose from #3066. Following EIP-721, the function onERC721Received from the interface should be a state-modifying callback.

What I did

Replaced "view" mutability to "nonpayable" as the onERC721Received function should read from and write to the contract state.

How I did it

^^

How to verify it

Check the file changes.

Description for the changelog

Changed mutability of onERC721Received to nonpayable

Cute Animal Picture

Following EIP-721, the function onERC721Received from the interface should be a state-modifying callback.
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2022

Codecov Report

Merging #3076 (f3591d8) into master (25c7650) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3076   +/-   ##
=======================================
  Coverage   88.38%   88.38%           
=======================================
  Files          97       97           
  Lines       10999    10999           
  Branches     2599     2599           
=======================================
  Hits         9721     9721           
  Misses        828      828           
  Partials      450      450           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@charles-cooper charles-cooper changed the title improvement: Changed mutability of onERC721Received to nonpayable fix: change mutability of example ERC721 interface Aug 27, 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