Skip to content

Commit

Permalink
Merge pull request #202 from poanetwork/fix-getFee-methods
Browse files Browse the repository at this point in the history
Fix get fee methods for production build
  • Loading branch information
akolotov authored Mar 27, 2019
2 parents 5511958 + 81b327c commit f103544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/utils/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ export const getFeeManagerMode = (contract) => contract.methods.getFeeManagerMod

export const getHomeFee = async (contract) => {
const feeInWei = await contract.methods.getHomeFee().call()
return new BN(fromWei(feeInWei))
return new BN(fromWei(feeInWei.toString()))
}

export const getForeignFee = async (contract) => {
const feeInWei = await contract.methods.getForeignFee().call()
return new BN(fromWei(feeInWei))
return new BN(fromWei(feeInWei.toString()))
}

export const getFeeToApply = (homeFeeManager, foreignFeeManager, homeToForeignDirection) => {
Expand Down

0 comments on commit f103544

Please sign in to comment.