ETH Price: $2,064.71 (+7.18%)

Contract Diff Checker

Contract Name:
GalaxyCoder

Contract Source Code:

File 1 of 1 : GalaxyCoder

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract GalaxyCoder {

    address public owner;
    mapping (address => uint) public payments;

    constructor() {
        owner = msg.sender;
    }

    function payForNFT() public payable {
        payments[msg.sender] = msg.value;
    }

    function withdrawAll() public {
        address payable _to = payable(owner);
        address _thisContract = address(this);
        _to.transfer(_thisContract.balance);
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):