chore: update ui screens to use utilsModel instead

This commit is contained in:
hydr063n 2020-09-28 10:22:30 +02:00 committed by Iuri Matias
parent 7e344b0d49
commit 25748ce682
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ Popup {
}
function requestAddressForTransaction(address, amount, tokenAddress, tokenDecimals = 18) {
amount = walletModel.eth2Wei(amount.toString(), tokenDecimals)
amount = utilsModel.eth2Wei(amount.toString(), tokenDecimals)
chatsModel.requestAddressForTransaction(chatsModel.activeChannel.id,
address,
amount,
@ -35,7 +35,7 @@ Popup {
chatCommandModal.close()
}
function requestTransaction(address, amount, tokenAddress, tokenDecimals = 18) {
amount = walletModel.eth2Wei(amount.toString(), tokenDecimals)
amount = utilsModel.eth2Wei(amount.toString(), tokenDecimals)
chatsModel.requestTransaction(chatsModel.activeChannel.id,
address,
amount,

View File

@ -63,7 +63,7 @@ Item {
return "0"
}
try {
return walletModel.wei2Token(commandParametersObject.value.toString(), token.decimals)
return utilsModel.wei2Token(commandParametersObject.value.toString(), token.decimals)
} catch (e) {
console.error("Error getting the ETH value of:", commandParametersObject.value)
console.error("Error:", e.message)