Skip to content

Commit 19daa85

Browse files
committed
fix eth interfaces
1 parent ec66045 commit 19daa85

File tree

5 files changed

+162709
-15
lines changed

5 files changed

+162709
-15
lines changed

test/resolver.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,7 +3466,7 @@ <h1><a href="https://ens.domains/">ENS</a> Resolver</h1>
34663466
}
34673467
}
34683468
if (verifiers.size) {
3469-
const sub_row = create_row('Unruggable Verifier');
3469+
const sub_row = create_row(create_link('https://github.com/unruggable-labs/unruggable-gateways', {innerHTML: 'Unruggable Verifier'}));
34703470
row.insertAdjacentElement('afterend', sub_row);
34713471
for (const x of verifiers) {
34723472
add_row_tag(sub_row, create_explorer_address_link(x, {contract: true}));
@@ -5913,16 +5913,14 @@ <h1><a href="https://ens.domains/">ENS</a> Resolver</h1>
59135913
})
59145914
])];
59155915
if (should_stop_resolving()) return;
5916+
if (resolver.__name === "eth") {
5917+
add_iface(iface_nft.title, await network_state.ens.owner(__node));
5918+
}
59165919
for (const x of dynamic_ifaces) {
59175920
const [ok, data] = multi.shift();
59185921
if (!ok) continue;
59195922
const [addr] = RESOLVER_ABI.decodeFunctionResult(dynamic_frag, data);
5920-
if (is_null_hex(addr)) {
5921-
if (x === iface_nft && resolver.__name === "eth") {
5922-
add_iface(iface_nft.title, await network_state.ens.owner(__node));
5923-
}
5924-
continue;
5925-
}
5923+
if (is_null_hex(addr)) continue;
59265924
add_iface(x.title, addr, x.iface);
59275925
if (x.iface === IFACE_ETH_CONTROLLER) {
59285926
const controller = contract_for_controller(addr);

tools/output/ens-emoji-freq.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

validate/compare-nodes.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const OLD_NODES = [
2222
local_nvm('16.20.2'), // U14.0 (lts)
2323
local_nvm('18.13.0'), // U14.0
2424
local_nvm('18.20.2'), // U15.1 (lts)
25+
local_nvm('24.5.0'), // U16.0
2526
].map(node => {
2627
try {
2728
let version = run(node, `process.versions`);
@@ -32,18 +33,18 @@ const OLD_NODES = [
3233
}
3334
});
3435

36+
console.log(new Date());
37+
print_section('Available Versions');
38+
console.log(OLD_NODES.map(x => ({node: x.version.node, unicode: x.version.unicode})));
39+
3540
// require that the current node is using the appropriate version of unicode
36-
const UNICODE = UnicodeSpec.from_release('15.1');
41+
const UNICODE = UnicodeSpec.from_release('17');
3742
if (version_ordinal(parse_version(process.versions.unicode)) !== version_ordinal(UNICODE.unicode_version)) {
3843
console.log('Expected:', UNICODE.unicode_version.version);
3944
console.log('Process:', process.versions.unicode);
4045
throw new Error('Unicode mismatch');
4146
}
4247

43-
console.log(new Date());
44-
print_section('Available Versions');
45-
console.log(OLD_NODES.map(x => ({node: x.version.node, unicode: x.version.unicode})));
46-
4748
console.log();
4849
print_section('toLowerCase()');
4950
test_string_function(() => {
@@ -87,15 +88,16 @@ function test_string_function(fn) {
8788
}
8889
}
8990

90-
// 2024-09-11T05:57:03.431Z
91+
// 2025-09-18T19:07:52.479Z
9192
// ==== Available Versions ====
9293
// [
9394
// { node: '11.15.0', unicode: '11.0' },
9495
// { node: '12.1.0', unicode: '12.1' },
9596
// { node: '12.22.12', unicode: '13.0' },
9697
// { node: '16.20.2', unicode: '14.0' },
9798
// { node: '18.13.0', unicode: '15.0' },
98-
// { node: '18.20.2', unicode: '15.1' }
99+
// { node: '18.20.2', unicode: '15.1' },
100+
// { node: '24.5.0', unicode: '16.0' }
99101
// ]
100102

101103
// ==== toLowerCase() ====

validate/dump-speed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ console.log(`${((t * 1000) / LABELS.length).toFixed(1)} μs/label`);
1818
// 20230111: 4.9 μs/label
1919
// 20230920: 3.8 μs/label
2020
// 20240910: 2.5 μs/label
21+
// 20250918: 2.2 μs/label

0 commit comments

Comments
 (0)