Skip to content

Instantly share code, notes, and snippets.

View nexto123's full-sized avatar
🏠
Working from home

Ernest Bruce Brown nexto123

🏠
Working from home
  • Clare, Ireland
View GitHub Profile
@nexto123
nexto123 / banker.sol
Created August 16, 2021 21:17
Ether bank mini project..
pragma solidity 0.8.1;
contract Bank {
mapping(address => uint) balance;
function addBalance(uint _toAdd) public returns (uint) {
balance[msg.sender] += _toAdd;
@nexto123
nexto123 / memorystorage.sol
Last active August 12, 2021 16:15
solidity assignment solution
pragma solidity 0.7.5;
contract MemoryAndStorage {
mapping(uint => User) users;
struct User{
uint id;
uint balance;
}