Skip to content
Verified contractPartial

Migrations

Address0x1576fcf753c0fa5e57dc334630b020ca78fbc53d
Balance

0 ETH

 

Transactions

5

 

Compiler

solc 0.4.26

 

Same code

1,390 more contracts

 

Details

Compiler
solc 0.4.26+commit.4563c3fc
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,689,845
Creation transaction
0x6e584180a6…46f7357e60
Main copy (most transactions)
0xfaaa8474…c1afe13d

Migrations.sol

pragma solidity ^0.4.23;

// @dev Generated and used by the Truffle framework
contract Migrations {
    address public owner;
    uint256 public last_completed_migration;

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

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

    function setCompleted(uint256 completed) public restricted {
        last_completed_migration = completed;
    }

    function upgrade(address newAddress) public restricted {
        Migrations upgraded = Migrations(newAddress);
        upgraded.setCompleted(last_completed_migration);
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.