Skip to content
Verified contractPartial

Migrations

Address0xb9ed29d4f4d93bfacbd34c2c36fbf10b4dc12a2e
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.4.18

 

Same code

767 more contracts

 

Details

Compiler
solc 0.4.18+commit.9cf6e910
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
5,045,378
Creation transaction
0xb51dfef142…a1ce3680d5
Main copy (most transactions)
0xf4decf04…8ab796cc

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) _;
  }
//butts
  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": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.