messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n/**\n * Math operations with safety checks\n */\nlibrary SafeMath {\n function mul(uint a, uint b) internal pure returns (uint) {\n uint c = a * b;\n assert(a == 0 || c / a... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n\n/*\n * Abstract Token Smart Contract. Copyright © 2017 by ABDK Consulting.\n * Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>\n */\npragma solidity ^0.4.20;\n\n/*\n ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uin... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.21;\n/**\n * Changes by https://www.docademic.com/\n */\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * funct... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) pure internal returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.24;\n\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overfl... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n/**\n * Edgeless Casino Proxy Contract. Serves as a proxy for game functionality.\n * Allows the players to deposit and withdraw funds.\n * Allows authorized addresses to make game transactions.\n * author... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * See https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n function totalSupply()... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.0;\ncontract Uranium235Radioactive {\n /* Public variables of the token */\n string public standard = 'Token 0.1';\n string public name;\n string public symbol;\n uint8 ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that revert on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, reverts on overflow.... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.4;\n\n contract ERC20 {\n function totalSupply() constant returns (uint256 totalSupply);\n function balanceOf(address _owner) constant returns (uint256 balance);\n funct... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uin... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n uint256 public to... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.11;\n\n/*\n* LOK 'LookRev Token' crowdfunding contract\n*\n* Refer to https://lookrev.com/ for further information.\n* \n* Developer: LookRev (TM) 2017.\n*\n* Audited by BokkyPooBah / ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n\n/**\n * \n * Author: Parkers Team\n * Telegram: parkres\n * \n * Token Details:-\n * Name: ParkresToken\n * Symbol: PARK\n * Decimals: 8\n * Total Supply: 200 million\n * \n *... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.25;\n\n// ----------------------------------------------------------------------------\n// Safe maths\n// ----------------------------------------------------------------------------\nl... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.2;\n\ncontract ERC20Interface {\n\n function balanceOf(address _owner) constant returns (uint256 balance);\n function transfer(address _to, uint256 _value) returns (bool success)... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.24;\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n uint256 public tot... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n// ----------------------------------------------------------------------------\n// 'NOUN' token contract\n//\n// Deployed to : 0xbD85185eC1798657bd3b8c59f435b41C00c25148\n// Sy... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.15;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n//A BurnableOpenPaymet is instantiated with a specified payer and a commitThreshold.\n//The recipient not set when the contract is instantiated.\n\n//The constructor is payable, so the contract can be inst... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n/*\n*\n*\n* 微信fac2323\n* 制作erc20代币 ERC721代币,存款合约,太阳线合约,互助合约,微信fac2323\n*\n*\n*\n*\n*\n*\n*/\n\n\npragma solidity ^0.4.21;\n \nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure re... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n\ncontract owned {\n address public owner;\n\n function owned() public {\n owner = msg.sender;\n }\n\n modifier onlyOwner {\n require(msg.sender == owner... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.6;\n \ncontract SafeMath {\n //internals\n \n function safeMul(uint a, uint b) internal returns (uint) {\n uint c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.1;\n\ncontract EtherLovers {\n\n event LoversAdded(string lover1, string lover2);\n\n uint constant requiredFee = 100 finney;\n\n address private owner;\n\n function EtherLovers() ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.15;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n retu... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n/**\n * @title ERC721 interface\n * @dev see https://github.com/ethereum/eips/issues/721\n */\n\n\ncontract SafeMath {\n function safeAdd(uint x, uint y) pure internal return... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n// File: contracts/math/SafeMath.sol\n\n/**\n * Copyright (c) 2016 Smart Contract Solutions, Inc.\n * Released under the MIT license.\n * https://github.com/OpenZeppelin/openzep... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.25;\n\ncontract Token {\n\n /// @return total amount of tokens\n function totalSupply() constant returns (uint256 supply) {}\n\n /// @param _owner The address from which the b... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n// ----------------------------------------------------------------------------\n// 'BITGOLD' token contract\n//\n// Deployed to : 0x0177AdB123CB21B087Abc5557db0AF177e359A52\n//... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.15;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n \n function mul(uint256 a, uint256 b) internal pure return... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.25;\n\n\nlibrary PartialSafeMath {\n int256 constant private INT256_MIN = -2**255;\n\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b <= a... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.19;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n\n\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure return... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\ncontract ERC20Interface {\n function totalSupply() public view returns (uint);\n function balanceOf(address tokenOwner) public view returns (uint balance);\n function t... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n// ----------------------------------------------------------------------------\n// (c) by Moritz Neto with BokkyPooBah / Bok Consulting Pty Ltd Au 2017. The MIT Licence.\n// --... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.15;\n\ncontract generic_holder {\n address owner;\n \n modifier onlyowner {\n if (owner == msg.sender)\n _;\n }\n \n // constructor\n function ge... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n// ----------------------------------------------------------------------------\n// 'name' token contract\n//\n// Deployed to : 0xed0b26224D4629264B02f994Dcc4375DA3e6F9e4\n// Sy... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n\n /**\n * Use CC Let your advertisement spread all over the world\n * \n◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇\n◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇◇... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.8;\n\n/**\n * Math operations with safety checks\n */\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) internal returns (uint256) {\n uint256 c = a * b;\n ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\nlibrary SafeMath\n{\n function mul(uint256 a, uint256 b) internal pure returns (uint256) \n {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n function div(uint256 a, u... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.19;\n\ncontract Ownable {\n address public owner;\n\n\n /** \n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n funct... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.8;\n\n/**\n * Math operations with safety checks\n */\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n asse... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n\n \n \nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^ 0.4 .9;\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns(uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.4;\n \ncontract Token {\n \n /// @return total amount of tokens\n function totalSupply() constant returns (uint256 supply) {}\n \n /// @param _owner The address from which the... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.15;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.13;\n\n// The IPOcoinHotelShares contract\n// +35799057557\n// ©IT Consulting Group Ltd\n// There is no law stronger than the code\n\nlibrary SafeMath {\n function mul(uint a, uint b)... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.23;\n\n// File: contracts/ERC223.sol\n\ncontract ERC223 {\n\t\n\t// Get the account balance of another account with address owner\n\tfunction balanceOf(address owner) public view retur... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a =... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n// ----------------------------------------------------------------------------\n// Safe maths\n// ----------------------------------------------------------------------------\n... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.20;\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overflow.\n ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n\n\npragma solidity ^0.4.16;\n\n\npragma solidity ^0.4.16;\n\n/**\n * ERC-20 standard token interface, as defined\n * <a href=\"http://github.com/ethereum/EIPs/issues/20\">here</a... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\ncontract casinoRoyale {\n AbstractRandom m_RandomGen = AbstractRandom(0xba978d581bec0d735cf75f43a83f6d2b2a6015d0);\n address owner;\n event FlipCoinEvent(\n uint value... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.24;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (ui... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.20;\n\ncontract TestingR\n{\n\n uint8 public result = 0;\n\n bool finished = false;\n\n address rouletteOwner;\n\n function Play(uint8 _number)\n external\n payable\n... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.23;\n\n// File: contracts/grapevine/crowdsale/GrapevineWhitelistInterface.sol\n\n/**\n * @title Grapevine Whitelist extends the zeppelin Whitelist and adding off-chain signing capabili... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n \n // ----------------------------------------------------------------------------\n // 'ACT324180' token contract\n //\n // Deployed to : 0x3f70c0B02879c36162C2C9... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^ 0.4 .9;\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns(uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.4;\n\ncontract Token {\n\n /// @return total amount of tokens\n function totalSupply() constant returns (uint256 supply) {}\n\n /// @param _owner The address from which the ba... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n/**\n * NTRY Cointract contract, ERC20 compliant (see https://github.com/ethereum/EIPs/issues/20)\n *\n * Code is based on multiple sources:\n * https://github.com/OpenZeppelin/zeppelin-solidity/blob/ma... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n/*\n-----------------------------------------------------------------\nFILE HEADER\n-----------------------------------------------------------------\n\nfile: TokenState.sol\nversion: 1.0\nauthor:... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.11;\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n uint256 public tota... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n/**\n * Copyright (C) Virtue Fintech FZ-LLC, Dubai\n * All rights reserved.\n * Author: mhi@virtue.finance \n *\n * MIT License\n *\n * Permission is hereby granted, free of charge, to any person obtaining... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a =... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\ncontract YumeGorilla {\n\n event Transfer(address indexed from, address indexed to, uint amount);\n event Approval(address indexed owner, address indexed spender, uint amo... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.25;\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ninterface IERC20 {\n function totalSupply() external view returns (uint256);\n\n f... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\n\n\n\n/**\n* @title SafeMath\n* @dev Math operations with safety checks that throw on error\n*/\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on over... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.0;\n\n/**\n * Author: Nick Johnson <arachnid at notdot.net>\n * \n * WARNING: This contract is new and thus-far only lightly tested. I'm fairly\n * confident it operates as described, ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.11;\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control \n * functions, this simplifies the implementation of \"user ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.10;\n\ncontract ForeignToken {\n function balanceOf(address _owner) constant returns (uint256);\n function transfer(address _to, uint256 _value) returns (bool);\n}\n\ncontract La... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.20;\n\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) public pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n\ninterface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }\n\ncontract ForAVerCoin {\n // Public variables... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.23;\n\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {\n\n if (a ==... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n\ncontract NHSC {\n string public name;\n string public symbol;\n uint8 public decimals = 18;\n uint256 public totalSupply;\n\n mapping (address => uint256) public ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^ 0.4 .9;\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal constant returns(uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.20;\n\ninterface tokenRecipient { function receiveApproval (address _from, uint256 _value, address _token, bytes _extraData) public; }\n\ncontract AdrenalinCoin {\n // Public varia... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.25;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a * b;\n assert(a == 0 || c / a == b);\n return c;\n }\n\n fu... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.24;\n\ncontract JNS {\n mapping (string => address) strToAddr;\n mapping (address => string) addrToStr;\n address private wallet;\n\n constructor (address _wallet) public {\... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\n/**\n * This contract manages the messages (or ads) to be displayed in the Pray4Prey aquarium.\n **/\n\ncontract mortal {\n\taddress owner;\n\n\tfunction mortal() {\n\t\towner = msg.sender;\n\t}\n\n\tfunct... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.6;\n\n// ## Matthew - a contract for increasing \"whaleth\"\n// README: https://github.com/rolandkofler/matthew\n// MIT LICENSE 2016 Roland Kofler, thanks to Crul for testing\n\ncontra... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n// ----------------------------------------------------------------------------\n// 'TAGCASH' token contract\n//\n// Deployed to : 0xa1b458f88ca51100891db70ff95cd58d359d5072\n//... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n// produced by the Solididy File Flattener (c) David Appleton 2018\n// contact : dave@akomba.com\n// released under Apache 2.0 licence\ninterface IERC20 {\n function totalSuppl... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.15;\n\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (u... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a =... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n// ----------------------------------------------------------------------------\n// 'LVX' token contract\n//\n// Deployed to : 0x2f183dE02815Ffe569656F432EE7392D352b814D\n// Sym... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity 0.4.19;\n\n// File: zeppelin-solidity/contracts/ownership/Ownable.sol\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.24;\n\nlibrary SafeMath {\n\n function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {\n \n if (_a == 0) {\n return 0;\n }\n\n uint256 c = _a * _b;\n ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.11;\n\npragma solidity ^0.4.11;\n\ninterface IERC20 {\n function totalSupply() constant returns (uint256 totalSupply);\n function balanceOf(address _owner) constant returns (uint... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18;\n\n/*\n Owned contract interface\n*/\ncontract IOwned {\n // this function isn't abstract since the compiler emits automatically generated getter functions as external\n f... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.11;\n\ncontract BMCAssetInterface {\n function __transferWithReference(address _to, uint _value, string _reference, address _sender) returns(bool);\n function __transferFromWithR... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.23;\n\nlibrary SafeMath {\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.12;\n\n\n//Current version:0.4.24+commit.e67f0147\n/**\n * Math operations with safety checks\n */\ncontract SafeMath {\n function safeMul(uint256 a, uint256 b) internal returns (uint... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity^0.4.20; \n//实例化代币\ninterface tokenTransfer {\n function transfer(address receiver, uint amount);\n function transferFrom(address _from, address _to, uint256 _value);\n function ba... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.13;\n\nlibrary SafeMath {\n\n /**\n * @dev Multiplies two numbers, throws on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) ... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.18; \n\n// similar as other games, with two changes:\n// A. half of your kebabs expiry date is over when you sell them so they are thrown away\n// B. the \"free\" 150 initial cost 0.00... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\npragma solidity ^0.4.16;\n/**\n* @notice Temple3 TOKEN CONTRACT\n* Token for the construction for future Third Temple in Jerusalem\n* @dev ERC-20 Token Standar Compliant\n* @author Fares A. Akel C. f.anton... |
[
{
"role": "user",
"content": "Analyze this Solidity code for security vulnerabilities:\n\n```solidity\ncontract SafeMath {\n uint256 constant public MAX_UINT256 =\n 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;\n \n function safeAdd(uint256 x, uint256 y) constant internal retu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.