Contracts maintaince

This commit is contained in:
Ricardo Guilherme Schmidt 2018-09-05 22:05:38 -03:00
parent 30e0dcea6e
commit e43f8e5228
No known key found for this signature in database
GPG Key ID: 3F95A3AD0B607030
11 changed files with 23 additions and 23 deletions

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.23;
pragma solidity ^0.4.24;
contract Controlled {
/// @notice The address of the controller is the only address that can call

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.21;
pragma solidity ^0.4.24;
/**
* @notice Uses ethereum signed messages
@ -18,8 +18,8 @@ contract MessageSigned {
bytes32 _signHash,
bytes _messageSignature
)
pure
internal
pure
returns(address)
{
uint8 v;

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.23;
pragma solidity ^0.4.24;
/// @dev `Owned` is a base level contract that assigns an `owner` that can be
/// later changed

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.23;
pragma solidity ^0.4.24;
/**
* Math operations with safety checks

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.21;
pragma solidity ^0.4.24;
interface ENS {

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.18;
pragma solidity ^0.4.24;
import "./ENS.sol";
@ -44,7 +44,7 @@ contract ENSRegistry is ENS {
* @param owner The address of the new owner.
*/
function setSubnodeOwner(bytes32 node, bytes32 label, address owner) public only_owner(node) {
bytes32 subnode = keccak256(node, label);
bytes32 subnode = keccak256(abi.encodePacked(node, label));
emit NewOwner(node, label, owner);
records[subnode].owner = owner;
}
@ -55,7 +55,7 @@ contract ENSRegistry is ENS {
* @param resolver The address of the resolver.
*/
function setResolver(bytes32 node, address resolver) public only_owner(node) {
emit NewResolver(node, resolver);
emit NewResolver(node, resolver);
records[node].resolver = resolver;
}

View File

@ -1,6 +1,6 @@
pragma solidity ^0.4.18;
pragma solidity ^0.4.24;
import './ENS.sol';
import "./ENS.sol";
/**
* A simple resolver anyone can use; only allows the owner of a node to set its
@ -53,7 +53,7 @@ contract PublicResolver {
* Constructor.
* @param ensAddr The ENS registrar contract.
*/
function PublicResolver(ENS ensAddr) public {
constructor(ENS ensAddr) public {
ens = ensAddr;
}
@ -65,7 +65,7 @@ contract PublicResolver {
*/
function setAddr(bytes32 node, address addr) public only_owner(node) {
records[node].addr = addr;
AddrChanged(node, addr);
emit AddrChanged(node, addr);
}
/**
@ -78,7 +78,7 @@ contract PublicResolver {
*/
function setContent(bytes32 node, bytes32 hash) public only_owner(node) {
records[node].content = hash;
ContentChanged(node, hash);
emit ContentChanged(node, hash);
}
/**
@ -89,7 +89,7 @@ contract PublicResolver {
*/
function setMultihash(bytes32 node, bytes hash) public only_owner(node) {
records[node].multihash = hash;
MultihashChanged(node, hash);
emit MultihashChanged(node, hash);
}
/**
@ -100,7 +100,7 @@ contract PublicResolver {
*/
function setName(bytes32 node, string name) public only_owner(node) {
records[node].name = name;
NameChanged(node, name);
emit NameChanged(node, name);
}
/**
@ -116,7 +116,7 @@ contract PublicResolver {
require(((contentType - 1) & contentType) == 0);
records[node].abis[contentType] = data;
ABIChanged(node, contentType);
emit ABIChanged(node, contentType);
}
/**
@ -127,7 +127,7 @@ contract PublicResolver {
*/
function setPubkey(bytes32 node, bytes32 x, bytes32 y) public only_owner(node) {
records[node].pubkey = PublicKey(x, y);
PubkeyChanged(node, x, y);
emit PubkeyChanged(node, x, y);
}
/**
@ -139,7 +139,7 @@ contract PublicResolver {
*/
function setText(bytes32 node, string key, string value) public only_owner(node) {
records[node].text[key] = value;
TextChanged(node, key, key);
emit TextChanged(node, key, key);
}
/**

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.18;
pragma solidity ^0.4.24;
contract ResolverInterface {
function PublicResolver(address ensAddr) public;

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.11;
pragma solidity ^0.4.24;
contract ApproveAndCallFallBack {
function receiveApproval(address from, uint256 _amount, address _token, bytes _data) public;

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.23;
pragma solidity ^0.4.24;
import "./ERC20Token.sol";

View File

@ -1,4 +1,4 @@
pragma solidity ^0.4.23;
pragma solidity ^0.4.24;
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20