parent
0908b13ad5
commit
d1d56c9ea8
|
@ -23,7 +23,7 @@ const getTokenDetailsTask*: Task = proc(argEncoded: string) {.gcsafe, nimcall.}
|
|||
"address": arg.address,
|
||||
"name": tkn.tokenName(),
|
||||
"symbol": tkn.tokenSymbol(),
|
||||
"decimals": (if decimals == 0: "" else: $decimals)
|
||||
"decimals": $decimals
|
||||
}
|
||||
arg.finish(output)
|
||||
except Exception as e:
|
||||
|
|
|
@ -17,6 +17,7 @@ StatusModal {
|
|||
property int marginBetweenInputs: 35
|
||||
property string validationError: ""
|
||||
property WalletStore walletStore
|
||||
property int mainnetChainID: 1
|
||||
|
||||
header.title: editable ?
|
||||
//% "Add custom token"
|
||||
|
@ -41,7 +42,7 @@ StatusModal {
|
|||
open();
|
||||
}
|
||||
|
||||
function openWithData(address, name, symbol, decimals){
|
||||
function openWithData(chainId, address, name, symbol, decimals){
|
||||
addressInput.text = address;
|
||||
nameInput.text = name;
|
||||
symbolInput.text = symbol;
|
||||
|
@ -60,7 +61,7 @@ StatusModal {
|
|||
}
|
||||
|
||||
property var getTokenDetails: Backpressure.debounce(popup, 500, function (tokenAddress){
|
||||
popup.walletStore.walletTokensModule.getTokenDetails(tokenAddress)
|
||||
popup.walletStore.walletTokensModule.getTokenDetails(mainnetChainID, tokenAddress)
|
||||
});
|
||||
|
||||
function onKeyReleased(){
|
||||
|
|
Loading…
Reference in New Issue