prompt stringlengths 302 235k | response dict |
|---|---|
Give me the source code of the following ethereum smart contract opcode: PUSH1 0x60 PUSH1 0x40 MSTORE PUSH1 0x12 PUSH1 0x2 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 PUSH1 0xFF AND MUL OR SWAP1 SSTORE POP CALLVALUE ISZERO PUSH3 0x2C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x40 MLOAD ... | {
"vulnerability": "overflow",
"code": "pragma solidity ^0.4.16;\n\ninterface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }\n\ncontract TokenERC20 {\n string public name; \n string public symbol;\n uint8 public decimals = 18; \... |
Give me the source code of the following ethereum smart contract opcode: PUSH1 0x60 PUSH1 0x40 MSTORE PUSH1 0x1 DUP1 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP PUSH1 0x40 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0xC DUP2 MSTORE PUSH1 0... | {
"vulnerability": "overflow",
"code": "pragma solidity ^0.4.10;\n\n\ncontract SafeMath {\n function safeAdd(uint256 x, uint256 y) internal returns(uint256) {\n uint256 z = x + y;\n assert((z >= x) && (z >= y));\n return z;\n }\n\n function safeSubtract(uint256 x, uint256 y) internal r... |
Give me the source code of the following ethereum smart contract opcode: PUSH1 0x60 PUSH1 0x40 MSTORE PUSH1 0x40 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x5 DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x476F6C656D000000000000000000000000000000000000000000000000000000 DUP2 MSTORE POP PUSH1 0x0 SWAP1 DUP1 MLOAD SWAP... | {
"vulnerability": "overflow",
"code": "pragma solidity ^0.4.16;\n\ninterface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }\n\ncontract Golem {\n \n string public name = \"Golem\";\n string public symbol = \"ZNX\";\n uint8 public dec... |
Give me the source code of the following ethereum smart contract opcode: PUSH1 0x60 PUSH1 0x40 MSTORE PUSH1 0x1 DUP1 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP PUSH1 0x40 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0xC DUP2 MSTORE PUSH1 0... | {
"vulnerability": "overflow",
"code": "pragma solidity ^0.4.10;\n\n\ncontract SafeMath {\n function safeAdd(uint256 x, uint256 y) internal returns(uint256) {\n uint256 z = x + y;\n assert((z >= x) && (z >= y));\n return z;\n }\n\n function safeSubtract(uint256 x, uint256 y) internal r... |
Give me the source code of the following ethereum smart contract opcode: PUSH1 0x60 PUSH1 0x40 MSTORE PUSH1 0x1 DUP1 PUSH1 0x0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP PUSH1 0x40 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0xC DUP2 MSTORE PUSH1 0... | {
"vulnerability": "overflow",
"code": "pragma solidity ^0.4.10;\n\n\ncontract SafeMath {\n function safeAdd(uint256 x, uint256 y) internal returns(uint256) {\n uint256 z = x + y;\n assert((z >= x) && (z >= y));\n return z;\n }\n\n function safeSubtract(uint256 x, uint256 y) internal r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.