Skip to content

Commit

Permalink
Merge pull request #160 from edenia/feat/vote-cronjob
Browse files Browse the repository at this point in the history
fix(voter): create proxy voter cron job script
  • Loading branch information
xavier506 authored Oct 23, 2022
2 parents 9b0ea77 + e967a5d commit ac288f5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions voter/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const voter = eosConfig.voterAccount
const votePerms = eosConfig.votePerms

async function init() {
let retry = true
try {
while ( retry ) {
console.log('Calling proxyvote action on Smart Proxy Account:', proxyAccount)

const transact = await eosUtil
Expand All @@ -21,13 +19,10 @@ async function init() {
}
])
.catch(er => {
retry = false
console.log(er.toString())
})

if (transact) {console.log(transact)}

}
} catch (error) {
console.error(error)
}
Expand Down

0 comments on commit ac288f5

Please sign in to comment.