mirror of
https://github.com/status-im/autobounty.git
synced 2025-02-09 20:24:13 +00:00
Fix
This commit is contained in:
parent
8e6407b75f
commit
89484c8e4b
3
index.js
3
index.js
@ -23,12 +23,13 @@ app.get('/address/:address', function(req, res, next){
|
|||||||
eth.sendTransaction({
|
eth.sendTransaction({
|
||||||
from: address,
|
from: address,
|
||||||
to: req.params.address,
|
to: req.params.address,
|
||||||
gas: 21500,
|
gas: 100000,
|
||||||
value: (parseFloat(process.env.AMOUNT) || 1.5) * 1e18,
|
value: (parseFloat(process.env.AMOUNT) || 1.5) * 1e18,
|
||||||
data: '0xde5f72fd', // sha3('faucet()')
|
data: '0xde5f72fd', // sha3('faucet()')
|
||||||
nonce,
|
nonce,
|
||||||
}, (err, txID) => {
|
}, (err, txID) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
nonce -= 1;
|
||||||
console.log('Request failed', err)
|
console.log('Request failed', err)
|
||||||
return res.status(500).json(err)
|
return res.status(500).json(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user