me confused no accounts
This commit is contained in:
parent
6f721896d1
commit
acabbe1a98
|
@ -93,7 +93,7 @@ class App extends React.Component {
|
|||
<span>Your Allocation: 500</span>
|
||||
<span>Your Award: 500 <Button variant="outline-primary">Withdraw</Button></span>
|
||||
|
||||
<NumericInput mobile step={5} />
|
||||
<NumericInput mobile step={5} min={0} />
|
||||
<Select
|
||||
isMulti
|
||||
defaultValue={selectedOption}
|
||||
|
@ -101,12 +101,15 @@ class App extends React.Component {
|
|||
options={options}
|
||||
placeholder="Choose Contributor(s)..."
|
||||
/>
|
||||
<input value="bsadsad" />
|
||||
<input value="bsadsad" placeholder="Enter your praise..." />
|
||||
<Button variant="outline-primary">Allocate</Button>
|
||||
</Tab>
|
||||
<Tab eventKey={2} title={this._renderStatus('Admins', true)}>
|
||||
<div>lol</div>
|
||||
</Tab>
|
||||
<Tab eventKey={3} title={this._renderStatus('Leaderboard', true)}>
|
||||
<div>¯\_(ツ)_/¯</div>
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</div>);
|
||||
}
|
||||
|
|
|
@ -80,6 +80,10 @@
|
|||
"0xc2fcb69e0c06e6b612c9773971f962b871d8f10abcbe5752c2b21f2222e7d043": {
|
||||
"name": "Meritocracy",
|
||||
"address": "0x3b09228F1C2e5242Af9681D2854AeA3A112105d2"
|
||||
},
|
||||
"0x1411ee9f114a60cef8802a53ea89c2640c01fba8139488cbeccde02c58fea5e6": {
|
||||
"name": "Meritocracy",
|
||||
"address": "0x7D1Ac123Ffdf90f911343cb7FeDd3902caC303B6"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -75,7 +75,7 @@ module.exports = {
|
|||
{ "mnemonic": "12 word mnemonic", "balance": "5 ether" },
|
||||
]
|
||||
},
|
||||
"afterDeploy": ["SNT.methods.generateTokens('$accounts[0]', '100000000000000000000').send()"]
|
||||
"afterDeploy": ["SNT.methods.generateTokens('$accounts[0]', '100000000000000000000').send()"]
|
||||
},
|
||||
|
||||
// merges with the settings in default
|
||||
|
|
|
@ -118,6 +118,7 @@ contract Meritocracy {
|
|||
Contributor storage cSender = contributors[msg.sender];
|
||||
Contributor storage cReceiver = contributors[_contributor];
|
||||
// Requirements
|
||||
require(_amount > 0); // Allow Non-Zero amounts only
|
||||
require(cSender.addr == msg.sender); // Ensure Contributors both exist, and isn't the same address
|
||||
require(cReceiver.addr == _contributor);
|
||||
require(cSender.addr != cReceiver.addr); // cannot send to self
|
||||
|
|
Loading…
Reference in New Issue