Skip to content

Commit

Permalink
fix error number to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
khaihkd committed May 8, 2019
1 parent 9b4776b commit 2029465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/helpers/reward.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ let RewardHelper = {
let data = {
'jsonrpc': '2.0',
'method': 'eth_getCandidateStatus',
'params': [canR[i].candidate.toLowerCase(), '0x' + epoch.toString('hex')],
'params': [canR[i].candidate.toLowerCase(), `0x${epoch}`],
'id': 88
}
let status = await axios.post(config.get('WEB3_URI'), data)
Expand Down

0 comments on commit 2029465

Please sign in to comment.