Skip to content
Verified contractPartial

Migrations

Address0x48de8f5aa72d2e5721cd45821ecff579c210629d
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.4.21

 

Same code

41 more contracts

 

Details

Compiler
solc 0.4.21+commit.dfe3193c
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,207,335
Creation transaction
0x925bb70bc3…b022fefeb4
Main copy (most transactions)
0xdf42ce6f…01190604

Migrations.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.17;

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
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.