Skip to content

Commit

Permalink
Merge pull request #388 from pqv199x/fix-unvote-error
Browse files Browse the repository at this point in the history
fix unvote error
  • Loading branch information
pqv199x authored Dec 20, 2018
2 parents 674db4b + 2349c1f commit c74f7eb
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 c74f7eb

Please sign in to comment.