diff --git a/index.html b/index.html
index 1c89f08..89f2612 100644
--- a/index.html
+++ b/index.html
@@ -445,6 +445,16 @@
errorText: `Invalid private key.
It usually starts with "L" or "R".`
}
}
+ },
+ {
+ selector: '#check_balance_input',
+ customValidation: (value) => {
+ if (!value) return { isValid: false, errorText: 'Please enter a private key or eth address' }
+ return {
+ isValid: floCrypto.getPubKeyHex(value) || ethOperator.isValidAddress(value),
+ errorText: `Invalid private key or eth address.
It usually starts with "L" or "R" or "0x"`
+ }
+ }
}
]
}
@@ -454,7 +464,7 @@
routingEnd(state) {
let { page } = state
if (!page)
- page = 'search'
+ page = 'balance'
if (page !== 'send') {
taprootScriptTxDetails = {}
}
@@ -569,8 +579,8 @@
-
-
-
-
-
Balance
-
- -
-
Ether
- 0
-
- -
-
USDC
- 0
-
- -
-
USDT
- 0
-
-
-
-
+
`)
if (window.ethereum && !(window.currentChainId && window.currentChainId === '0x1')) {
@@ -663,10 +647,13 @@
const { ethAddress } = contacts[floAddress]
renderedContacts.push(html`
- e.target.closest('.contact').querySelector('sm-copy').value = e.target.value}>
- FLO
- ETH
-
+ ${floAddress === ethAddress ? html`
+ `: html`
+ e.target.closest('.contact').querySelector('sm-copy').value = e.target.value}>
+ FLO
+ ETH
+
+ `}