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
12
12
class ENSTests : XCTestCase {
13
13
14
14
func testDomainNormalization( ) throws {
15
- let normalizedString = NameHash . normalizeDomainName ( " example.ens " )
16
-
15
+ let normalizedString = NameHash . normalizeDomainName ( " Example.ENS " )
16
+ XCTAssertEqual ( normalizedString , " example.ens " )
17
17
}
18
18
19
19
func testNameHash( ) throws {
@@ -79,10 +79,10 @@ class ENSTests: XCTestCase {
79
79
80
80
func testTTL( ) async throws {
81
81
let web3 = await Web3 . InfuraMainnetWeb3 ( accessToken: Constants . infuraToken)
82
- let ens = ENS ( web3: web3)
82
+ let ens = try XCTUnwrap ( ENS ( web3: web3) )
83
83
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 )
86
86
}
87
87
88
88
func testGetAddress( ) async throws {
You can’t perform that action at this time.
0 commit comments