Skip to content

Instantly share code, notes, and snippets.

View ahmedovv123's full-sized avatar
🚀

Ahmet Ahmedov ahmedovv123

🚀
View GitHub Profile
@ahmedovv123
ahmedovv123 / .deps...github...0xcert...ethereum-erc721...src...contracts...ownership...ownable.sol
Created January 13, 2022 13:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev The contract has an owner address, and provides basic authorization control whitch
* simplifies the implementation of user permissions. This contract is based on the source code at:
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/ownership/Ownable.sol
*/
contract Ownable
{
@ahmedovv123
ahmedovv123 / nft.sol
Created January 13, 2022 13:11
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "https://github.com/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-metadata.sol";
import "https://github.com/0xcert/ethereum-erc721/src/contracts/ownership/ownable.sol";
contract newNFT is NFTokenMetadata, Ownable {
constructor() {
nftName = "AADP";

Report

Gas Optimizations

Issue Instances
GAS-1 Use assembly to check for address(0) 5
GAS-2 Cache array length outside of loop 1