mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-17 03:47:58 +00:00
added to clj
This commit is contained in:
parent
a5a4bec9ef
commit
24e3ae84f1
@ -11,9 +11,9 @@ contract ERC20 {
|
||||
event Approval(address indexed owner, address indexed spender, uint256 value);
|
||||
}
|
||||
|
||||
contract MultiSigLibrary {
|
||||
contract MultiSigTokenWallet {
|
||||
|
||||
address constant _walletLibrary = 0xcafecafecafecafecafecafecafecafecafecafe;
|
||||
address constant _walletLibrary = 0x0;
|
||||
uint constant public MAX_OWNER_COUNT = 50;
|
||||
|
||||
event Confirmation(address indexed _sender, uint indexed _transactionId);
|
||||
@ -109,7 +109,7 @@ contract MultiSigLibrary {
|
||||
/// @dev Contract constructor sets initial owners and required number of confirmations.
|
||||
/// @param _owners List of initial owners.
|
||||
/// @param _required Number of required confirmations.
|
||||
function MultiSigLibrary(address[] _owners, uint _required)
|
||||
function MultiSigTokenWallet(address[] _owners, uint _required)
|
||||
public
|
||||
validRequirement(_owners.length, _required)
|
||||
{
|
||||
@ -539,7 +539,7 @@ contract MultiSigLibrary {
|
||||
|
||||
contract EnhancedMultiSig {
|
||||
|
||||
address constant _walletLibrary = 0xcafecafecafecafecafecafecafecafecafecafe;
|
||||
address constant _walletLibrary = 0xf5f6853e0ebA27074A804358eEdF4E89eFaebc98;
|
||||
uint constant public MAX_OWNER_COUNT = 50;
|
||||
|
||||
event Confirmation(address indexed _sender, uint indexed _transactionId);
|
||||
@ -700,4 +700,3 @@ contract EnhancedMultiSig {
|
||||
}
|
||||
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -96,8 +96,9 @@
|
||||
(defn deploy-contract
|
||||
[owner]
|
||||
(let [contract-code (-> "contracts/wallet.data" io/resource slurp)
|
||||
owner1 (format-param (eth-account))
|
||||
owner2 (format-param owner)
|
||||
data (str contract-code owner2)
|
||||
data (str contract-code owner1 owner2)
|
||||
value (format "0x%x" 0)]
|
||||
(send-transaction (eth-account) nil value {:gas "0x80000"
|
||||
:data data})))
|
||||
|
Loading…
x
Reference in New Issue
Block a user