From 9553658107fb7ee16a0fda845d186a98a52a6ddc Mon Sep 17 00:00:00 2001 From: CTG <123218280+CTG-TOKEN@users.noreply.github.com> Date: Sat, 21 Jan 2023 13:20:35 -0800 Subject: [PATCH] Update README.md --- README.md | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/README.md b/README.md index e9dbc2e..8b13789 100644 --- a/README.md +++ b/README.md @@ -1,33 +1 @@ -pragma solidity ^0.8.0; -contract MultiSigWallet { - address[] public owners; - mapping(address => bool) public isOwner; - address public owner; - address public spender; - address public recipient; - uint public value; - - constructor(address[] memory _owners) public { - owners = _owners; - for (uint i = 0; i < owners.length; i++) { - isOwner[owners[i]] = true; - } - } - - function execute(address _spender, address _recipient, uint _value) public { - require(isOwner[msg.sender], "Sender is not an owner of the contract"); - require(isOwner[spender], "Spender is not an owner of the contract"); - spender = _spender; - recipient = _recipient; - value = _value; - } - - function confirm(address _spender, address _recipient, uint _value) public { - require(spender == _spender, "Spender does not match the transaction"); - require(recipient == _recipient, "Recipient does not match the transaction"); - require(value == _value, "Value does not match the transaction"); - require(isOwner[msg.sender], "Sender is not an owner of the contract"); - spender.transfer(_value); - } -}