Skip to content

Commit

Permalink
Merge c141b5a into f96b77a
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnguyennguyen committed Dec 19, 2018
2 parents f96b77a + c141b5a commit dc96b24
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions app/components/candidates/Apply.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ import {
import coinbaseAddress from '../../../validators/coinbaseAddress.js'
// import nodeUrl from '../../../validators/nodeUrl.js'
import NumberInput from '../NumberInput.vue'
import BigNumber from 'bignumber.js'
import store from 'store'
export default {
Expand Down Expand Up @@ -222,9 +223,9 @@ export default {
let contract = await self.getTomoValidatorInstance()
let txParams = {
from : self.account,
value: parseFloat(value) * 10 ** 18,
gasPrice: 2500,
gas: 2000000
value: self.web3.utils.toHex(new BigNumber(value).multipliedBy(10 ** 18).toString(10)),
gasPrice: self.web3.utils.toHex(2500),
gas: self.web3.utils.toHex(2000000)
}
let rs
if (self.NetworkProvider === 'ledger') {
Expand Down
4 changes: 2 additions & 2 deletions app/components/candidates/Resign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export default {
let coinbase = self.coinbase
let txParams = {
from: account,
gasPrice: 2500,
gas: 2000000
gasPrice: self.web3.utils.toHex(2500),
gas: self.web3.utils.toHex(2000000)
}
let rs
if (self.NetworkProvider === 'ledger') {
Expand Down
4 changes: 2 additions & 2 deletions app/components/candidates/Withdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ export default {
console.log('==>', blockNumber, index)
let txParams = {
from: account,
gasPrice: 2500,
gas: 2000000
gasPrice: self.web3.utils.toHex(2500),
gas: self.web3.utils.toHex(2000000)
}
let wd
if (self.NetworkProvider === 'ledger') {
Expand Down
4 changes: 2 additions & 2 deletions app/components/voters/Unvoting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ export default {
let contract = await self.getTomoValidatorInstance()
let txParams = {
from: account,
gasPrice: 2500,
gas: 1000000
gasPrice: self.web3.utils.toHex(2500),
gas: self.web3.utils.toHex(1000000)
}
let rs
if (self.NetworkProvider === 'ledger') {
Expand Down
6 changes: 3 additions & 3 deletions app/components/voters/Voting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ export default {
let contract = await self.getTomoValidatorInstance()
let txParams = {
from: account,
value: new BigNumber(this.voteValue).multipliedBy(10 ** 18).toNumber(),
gasPrice: 2500,
gas: 1000000
value: self.web3.utils.toHex(new BigNumber(this.voteValue).multipliedBy(10 ** 18).toString(10)),
gasPrice: self.web3.utils.toHex(2500),
gas: self.web3.utils.toHex(1000000)
}
let rs
if (self.NetworkProvider === 'ledger') {
Expand Down

0 comments on commit dc96b24

Please sign in to comment.