Skip to content
Verified contractPartial

Migrations

Address0x9b998ccee8a0d45e93da18a2bf0a682e0b90e636
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.4.18

 

Same code

1,400 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,185,141
Creation transaction
0x8a017ab999…6af83f4299
Main copy (most transactions)
0xd17efc55…490d3ea9

Migrations.sol

pragma solidity ^0.4.4;

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": 0,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.