fix: code review
This commit is contained in:
parent
81c33fe2af
commit
c241bd47db
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue