Skip to content

Commit

Permalink
Fix getHomeFee and getForeignFee for production build
Browse files Browse the repository at this point in the history
  • Loading branch information
patitonar committed Mar 27, 2019
1 parent 4777813 commit 81b327c
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 81b327c

Please sign in to comment.