Fix ens name without nonce search

This commit is contained in:
Willian Mitsuda 2022-01-24 16:23:16 -03:00
parent af15aaba0c
commit e62068c65a
1 changed files with 8 additions and 1 deletions

View File

@ -250,7 +250,14 @@ const doSearch = async (
// Assume it is an ENS name
const resolvedName = await provider.resolveName(maybeAddress);
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