Skip to content
Verified contractPartial

Migrations

Address0x9fcc805f33befeaca9539d4e7b58dd2154e3781b
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.4.23

 

Same code

1,401 more contracts

 

Details

Compiler
solc 0.4.23+commit.124ca40d
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,818,539
Creation transaction
0x93b4c4ae70…ccb1ceda1a
Main copy (most transactions)
0xe8a8cb04…719c67ac

Migrations.sol

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

// File: contracts/Migrations.sol

contract Migrations {
  address public owner;
  uint public last_completed_migration;

  constructor() public {
    owner = msg.sender;
  }

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

  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.