File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Tests/web3swiftTests/remoteTests Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import Web3Core
1212class ENSTests : XCTestCase {
1313
1414 func testDomainNormalization( ) throws {
15- let normalizedString = NameHash . normalizeDomainName ( " example.ens " )
16-
15+ let normalizedString = NameHash . normalizeDomainName ( " Example.ENS " )
16+ XCTAssertEqual ( normalizedString , " example.ens " )
1717 }
1818
1919 func testNameHash( ) throws {
@@ -79,10 +79,10 @@ class ENSTests: XCTestCase {
7979
8080 func testTTL( ) async throws {
8181 let web3 = await Web3 . InfuraMainnetWeb3 ( accessToken: Constants . infuraToken)
82- let ens = ENS ( web3: web3)
82+ let ens = try XCTUnwrap ( ENS ( web3: web3) )
8383 let domain = " somename.eth "
84- let ttl = try await ens? . registry. getTTL ( node: domain)
85-
84+ let ttl = try await ens. registry. getTTL ( node: domain)
85+ XCTAssertGreaterThanOrEqual ( ttl , 0 )
8686 }
8787
8888 func testGetAddress( ) async throws {
You can’t perform that action at this time.
0 commit comments