Skip to content

Commit

Permalink
fix unvote error
Browse files Browse the repository at this point in the history
  • Loading branch information
pqv199x committed Dec 20, 2018
1 parent 674db4b commit 2349c1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/components/voters/Unvoting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ import {
import NumberInput from '../NumberInput.vue'
import VueQrcode from '@chenfengyuan/vue-qrcode'
import store from 'store'
import BigNumber from 'bignumber.js'
export default {
name: 'App',
components: {
Expand Down Expand Up @@ -277,7 +278,7 @@ export default {
}
self.loading = true
let unvoteValue = (parseFloat(value) * 10 ** 18)
let unvoteValue = new BigNumber(value).multipliedBy(1e+18).toString(10)
let account = await self.getAccount()
account = account.toLowerCase()
let contract = await self.getTomoValidatorInstance()
Expand Down

0 comments on commit 2349c1f

Please sign in to comment.