Fix ens name without nonce search
This commit is contained in:
parent
af15aaba0c
commit
e62068c65a
|
@ -250,7 +250,14 @@ const doSearch = async (
|
||||||
// Assume it is an ENS name
|
// Assume it is an ENS name
|
||||||
const resolvedName = await provider.resolveName(maybeAddress);
|
const resolvedName = await provider.resolveName(maybeAddress);
|
||||||
if (resolvedName !== null) {
|
if (resolvedName !== null) {
|
||||||
await navigateToTx(provider, resolvedName, maybeIndex, navigate);
|
// ENS name + nonce?
|
||||||
|
if (await navigateToTx(provider, resolvedName, maybeIndex, navigate)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ENS name
|
||||||
|
navigate(`/address/${maybeAddress}`, { replace: true });
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: handle default
|
// TODO: handle default
|
||||||
|
|
Loading…
Reference in New Issue