Skip to content
Verified contractPartial

MyBank

Address0x254634aa44d6d7d422a829a8a2883a097be482c2
Balance

0 ETH

 

Transactions

4

 

Compiler

solc 0.5.1

 

Same code

Only this contract

 

Details

Compiler
solc 0.5.1+commit.c8a2cb62
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
7,663,578
Creation transaction
0x619e59f968…08934dda5d

MyBank.sol

pragma solidity >=0.4.22 <0.6.0;

contract MyBank {
    uint256 balance;
    address owner;

    constructor () public {
        owner = msg.sender;
    }
    
    function deposit() public payable {
        balance = msg.value;
    }
    
    function withdraw(uint256 valueToRetrieve) public {
        require(msg.sender == owner);
        msg.sender.transfer(valueToRetrieve);
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 0,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.