mirror of
https://github.com/status-im/snt-voting.git
synced 2025-02-23 15:48:10 +00:00
Disabling unneded contracts
This commit is contained in:
parent
8abcd28835
commit
cce9494663
@ -104,8 +104,10 @@ const AddPoll = withFormik({
|
||||
const { addPoll } = PollManager.methods;
|
||||
const currentBlock = await getBlockNumber();
|
||||
const endTime = currentBlock + (oneDayinBlocks * 90);
|
||||
|
||||
const toSend = addPoll(endTime, singleChoiceDef(description, ['YES']));
|
||||
|
||||
setSubmitting(true);
|
||||
|
||||
toSend.estimateGas()
|
||||
.then(gasEstimated => {
|
||||
console.log("addPoll gas estimated: "+gasEstimated);
|
||||
@ -116,7 +118,10 @@ const AddPoll = withFormik({
|
||||
})
|
||||
.catch(res => {
|
||||
console.log('fail:', res);
|
||||
});
|
||||
})
|
||||
.finally(() => {
|
||||
setSubmitting(false);
|
||||
})
|
||||
|
||||
}
|
||||
})(StyledForm)
|
||||
|
@ -24,13 +24,13 @@
|
||||
"deploy": false
|
||||
},
|
||||
"DelegationProxyFactory": {
|
||||
"deploy": true
|
||||
"deploy": false
|
||||
},
|
||||
"ProposalManager": {
|
||||
"deploy": false
|
||||
},
|
||||
"TrustNetwork": {
|
||||
"deploy": true,
|
||||
"deploy": false,
|
||||
"args": ["$DelegationProxyFactory"]
|
||||
},
|
||||
"Factory": {
|
||||
@ -72,7 +72,7 @@
|
||||
"args": ["$SNT", "$TrustNetwork"]
|
||||
},
|
||||
"Democracy": {
|
||||
"deploy": true,
|
||||
"deploy": false,
|
||||
"args": [
|
||||
"$SNT",
|
||||
"$DelegationProxyFactory"
|
||||
|
Loading…
x
Reference in New Issue
Block a user