simpleCoinSol = `
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.25 <= 0.8.17;
contract SimpleCoin {
mapping (address => uint) balances;
event Transfer(address indexed _from, address indexed _to, uint256 _value);
constructor() {
balances[tx.origin] = 10000;
}
function sendCoin(address receiver, uint amount) public returns(bool sufficient) {
if (balances[msg.sender] < amount) return false;
balances[msg.sender] -= amount;
balances[receiver] += amount;
emit Transfer(msg.sender, receiver, amount);
return true;
}
function getBalanceInEth(address addr) public view returns(uint){
return getBalance(addr) * 2;
}
function getBalance(address addr) public view returns(uint) {
return balances[addr];
}
}
`.trim()