diff --git a/apps/examples.nameguard.io/src/app/layout.tsx b/apps/examples.nameguard.io/src/app/layout.tsx index 0787a8203..eb9c1d6f9 100644 --- a/apps/examples.nameguard.io/src/app/layout.tsx +++ b/apps/examples.nameguard.io/src/app/layout.tsx @@ -18,9 +18,6 @@ const messages = [ { address: "0x8Ae0e6dd8eACe27045d9e017C8Cf6dAa9D08C776", }, - { - address: "0xFD9eE68000Dc92aa6c67F8f6EB5d9d1a24086fAd", - }, { address: "0x9d32572997DA4948063E3Fc11c2552Eb82F7208E", }, diff --git a/packages/nameguard-js/src/secureprimaryName.test.ts b/packages/nameguard-js/src/secureprimaryName.test.ts index 0716ff258..096fb98ce 100644 --- a/packages/nameguard-js/src/secureprimaryName.test.ts +++ b/packages/nameguard-js/src/secureprimaryName.test.ts @@ -43,16 +43,6 @@ describe("secure primary name", () => { false, "٧٣٧.eth", ], - [ - "0xFD9eE68000Dc92aa6c67F8f6EB5d9d1a24086fAd", - null, - "no_primary_name", - null, - 'Unnamed fd9e', - null, - false, - null, - ], [ "0x9d32572997DA4948063E3Fc11c2552Eb82F7208E", "unlikely", diff --git a/packages/nameguard-python/coverage_badge.svg b/packages/nameguard-python/coverage_badge.svg index 59d64b376..607d3de4d 100644 --- a/packages/nameguard-python/coverage_badge.svg +++ b/packages/nameguard-python/coverage_badge.svg @@ -15,7 +15,7 @@ coverage coverage - 93% - 93% + 91% + 91% diff --git a/packages/nameguard-python/tests/test_api.py b/packages/nameguard-python/tests/test_api.py index 11a93fc21..c6ccb0cf5 100644 --- a/packages/nameguard-python/tests/test_api.py +++ b/packages/nameguard-python/tests/test_api.py @@ -636,16 +636,6 @@ def test_inspect_grapheme_multi(test_client): False, '٧٣٧.eth', ), - ( - '0xFD9eE68000Dc92aa6c67F8f6EB5d9d1a24086fAd', - None, - 'no_primary_name', - None, - 'Unnamed fd9e', - None, - False, - None, - ), # causes ContractLogicError ( '0x9d32572997DA4948063E3Fc11c2552Eb82F7208E', 'unlikely', diff --git a/packages/nameguard-python/tests/test_nameguard.py b/packages/nameguard-python/tests/test_nameguard.py index 26aa55518..236ed9f28 100644 --- a/packages/nameguard-python/tests/test_nameguard.py +++ b/packages/nameguard-python/tests/test_nameguard.py @@ -673,6 +673,16 @@ async def test_dynamic_check_order(nameguard: NameGuard): endpoint_name.set(None) +@pytest.mark.asyncio +async def test_secure_primary_name_error(nameguard: NameGuard, monkeypatch): + network = 'mainnet' + monkeypatch.setattr(nameguard.ns[network], 'name', lambda address: (_ for _ in ()).throw(Exception('Error'))) + r = await nameguard.secure_primary_name( + '0xFD9eE68000Dc92aa6c67F8f6EB5d9d1a24086fAd', network, return_nameguard_report=True + ) + assert r.primary_name_status == 'no_primary_name' + + @pytest.mark.asyncio async def test_stress_inspect_name(nameguard: NameGuard): # with omit_cure=False takes 1 minute