Skip to content

Instantly share code, notes, and snippets.

View Calvin087's full-sized avatar
👹
Building

Calvin T Calvin087

👹
Building
View GitHub Profile
@Calvin087
Calvin087 / setApprovalForAll.sol
Last active June 30, 2022 14:04
setApprovalForAll snippet
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev See {IERC721-setApprovalForAll}.
*/

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?