File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Tests/web3swiftTests/remoteTests Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ public class Web3HttpProvider: Web3Provider {
38
38
let result : UInt
39
39
if response. hasHexPrefix ( ) {
40
40
guard let num = BigUInt ( response, radix: 16 ) else {
41
- throw Web3Error . processingError ( desc: " Get network successed but can't be parsed to a valid chain id " )
41
+ throw Web3Error . processingError ( desc: " Get network succeeded but can't be parsed to a valid chain id. " )
42
42
}
43
43
result = UInt ( num)
44
44
} else {
45
45
guard let num = UInt ( response) else {
46
- throw Web3Error . processingError ( desc: " Get network successed but can't be parsed to a valid chain id " )
46
+ throw Web3Error . processingError ( desc: " Get network succeeded but can't be parsed to a valid chain id. " )
47
47
}
48
48
result = num
49
49
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import Web3Core
11
11
@testable import web3swift
12
12
13
13
final class Web3HttpProviderTests : XCTestCase {
14
-
14
+
15
15
/// if one of these rpc server lose efficacy, find a substitution from https://chainlist.org/
16
16
func testGetNetwork( ) async throws {
17
17
let requestURLstring = " https:// " + Networks. Mainnet. name + Constants. infuraHttpScheme + Constants. infuraToken
You can’t perform that action at this time.
0 commit comments