Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcurrency #224

Closed
Zzzzipper opened this issue Sep 9, 2021 · 0 comments
Closed

Subcurrency #224

Zzzzipper opened this issue Sep 9, 2021 · 0 comments

Comments

@Zzzzipper
Copy link

pragma solidity ^0.4.21;

contract Coin {
    // The keyword "public" makes those variables
    // readable from outside.
    address public minter;
    mapping (address => uint) public balances;

    // Events allow light clients to react on
    // changes efficiently.
    event Sent(address from, address to, uint amount);

    // This is the constructor whose code is
    // run only when the contract is created.
    constructor () public {
        minter = msg.sender;
    }

    function mint(address receiver, uint amount) public {
        if (msg.sender != minter) return;
        balances[receiver] += amount;
    }

    function send(address receiver, uint amount) public {
        if (balances[msg.sender] < amount) return;
        balances[msg.sender] -= amount;
        balances[receiver] += amount;
        emit Sent(msg.sender, receiver, amount);
    }
}
arkadyone pushed a commit to arkadyone/neon-evm that referenced this issue Nov 25, 2022
afalaleev pushed a commit that referenced this issue Oct 27, 2023
* DOPS-420 image name variable added

* DOPS-420 workflow changed

- added variable with githab organisation and repo name for run link
- hardcoded proxy repo url changed to variable

* DOPS-420 github api script fix

added os lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant