fix: code review

This commit is contained in:
Richard Ramos 2021-01-22 10:00:25 -04:00 committed by Iuri Matias
parent 81c33fe2af
commit c241bd47db
2 changed files with 13 additions and 1 deletions

View File

@ -84,7 +84,7 @@ proc validateMnemonic*(mnemonic: string): string =
result = $nim_status.validateMnemonic(mnemonic) result = $nim_status.validateMnemonic(mnemonic)
proc startWallet*() = proc startWallet*() =
discard nim_status.startWallet(true) discard nim_status.startWallet() # TODO: true to watch trx
proc hex2Token*(input: string, decimals: int): string = proc hex2Token*(input: string, decimals: int): string =
var value = fromHex(Stuint[256], input) var value = fromHex(Stuint[256], input)

View File

@ -66,6 +66,9 @@ Item {
Component { Component {
id: receiveModalComponent id: receiveModalComponent
ReceiveModal{ ReceiveModal{
onClosed: {
destroy();
}
selectedAccount: currentAccount selectedAccount: currentAccount
} }
} }
@ -73,18 +76,27 @@ Item {
Component { Component {
id: setCurrencyModalComponent id: setCurrencyModalComponent
SetCurrencyModal{ SetCurrencyModal{
onClosed: {
destroy();
}
} }
} }
Component { Component {
id: tokenSettingsModalComponent id: tokenSettingsModalComponent
TokenSettingsModal{ TokenSettingsModal{
onClosed: {
destroy();
}
} }
} }
Component { Component {
id: accountSettingsModalComponent id: accountSettingsModalComponent
AccountSettingsModal{ AccountSettingsModal{
onClosed: {
destroy();
}
changeSelectedAccount: walletHeader.changeSelectedAccount changeSelectedAccount: walletHeader.changeSelectedAccount
} }
} }