Skip to content

Instantly share code, notes, and snippets.

View Solexplorer's full-sized avatar
🎯
Focusing

Solexplorer

🎯
Focusing
View GitHub Profile
Message: https://www.aztecprotocol.com/ignition/participant/0x59839a277fad672ca7652817ede6adf9393dd066/?timestamp=1579360119485
Hash: 0x1a85526aac42e00d61ab36bb2aa68bbfe56ca61ba0cce7582f0327c3fef92700
Signature: 0x87b78dc343700fa9e2f5f885a95f979c14d317af6793e62358b3a1b78e91a2ea0d41d4b152958bf27aa1d5746b3236301efe2a974fad3f065cb2ab08f57c08dd1b

Keybase proof

I hereby claim:

  • I am solexplorer on github.
  • I am gitexplore (https://keybase.io/gitexplore) on keybase.
  • I have a public key ASAtniGD5zn5MJqMKhRmhWexKea8uIjbgIttK_DA4ntNjwo

To claim this, I am signing this object:

@Solexplorer
Solexplorer / TransferFunction
Created June 8, 2019 20:31
Transfer function
function transfer(address recipient, uint256 amount) public returns (bool) {
require(sender != address(0));
require(recipient != address(0));
_balances[sender] = _balances[sender].sub(amount);
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
return true;
}
@Solexplorer
Solexplorer / SimpleStorage.sol
Last active May 31, 2019 18:24
Store a string inside our Contract and retrieve it
//Version of solidity to be used
pragma solidity 0.5.0;
contract SimpleStorage {
// declare variable
string storedData;
function set(string memory x) public {
// Store the string inside the Contract