Skip to content
Verified contractPartial

Migrations

Address0xde8f06ec207922ff6a4649deadab42da0a9dc4c3
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.4.18

 

Same code

556 more contracts

 

Details

Compiler
solc 0.4.18+commit.9cf6e910
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,167,816
Creation transaction
0x0912791a3c…d26e91c774
Main copy (most transactions)
0x5fd87a8c…5cad0c1f

Migrations.sol

pragma solidity 0.4.18;

contract Migrations {
    address public owner;
    uint public last_completed_migration;

    modifier restricted() {
        if (msg.sender == owner) _;
    }

    function Migrations() public {
        owner = msg.sender;
    }

    function setCompleted(uint completed) public restricted {
        last_completed_migration = completed;
    }

    function upgrade(address new_address) public restricted {
        Migrations upgraded = Migrations(new_address);
        upgraded.setCompleted(last_completed_migration);
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.