mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 17:54:01 +00:00
chore: update ui screens to use utilsModel instead
This commit is contained in:
parent
7e344b0d49
commit
25748ce682
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user