Skip to content
Verified contractPartial

Migrations

Address0x09f9ab2212e3be281aa2e2e6a606ee93eb5f0f39
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.5.9

 

Same code

18 more contracts

 

Details

Compiler
solc 0.5.9+commit.c68bc34e
Language
solidity
Optimization
Yes, 200 runs
EVM version
byzantium
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
7,945,525
Creation transaction
0xb1d96a1258…f64843d1ea
Main copy (most transactions)
0x8d0037b8…0025fcfc

Migrations.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw

// File: contracts/Migrations.sol

pragma solidity ^0.5.4;

/* solium-disable */

contract Migrations {
    address public owner;
    uint public last_completed_migration;

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

    constructor() 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
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "byzantium"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.