Skip to content

Instantly share code, notes, and snippets.

View sydobd's full-sized avatar
🎯
Focusing

Obaid sydobd

🎯
Focusing
  • Munich, Germany
View GitHub Profile
@sydobd
sydobd / Shared-Wallet...SimpleWallet.sol
Created July 21, 2021 04:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.1;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol";
contract Allowance {
address owner;
mapping(address => uint) public allowance;
//using library
using SafeMath for uint;
@sydobd
sydobd / Solidity-basics...Controling-SmartContract_8-7-2021.sol
Created July 21, 2021 04:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
pragma solidity ^0.5.17;
contract StartStopUpdate{
address owner;
constructor() public{
owner = msg.sender;
}