Skip to content

Commit 4521eb2

Browse files
committed
fix codespell
1 parent acd66fe commit 4521eb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/web3swift/Web3/Web3+HttpProvider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ public class Web3HttpProvider: Web3Provider {
3838
let result: UInt
3939
if response.hasHexPrefix() {
4040
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.")
4242
}
4343
result = UInt(num)
4444
} else {
4545
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.")
4747
}
4848
result = num
4949
}

Tests/web3swiftTests/remoteTests/Web3HttpProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Web3Core
1111
@testable import web3swift
1212

1313
final class Web3HttpProviderTests: XCTestCase {
14-
14+
1515
/// if one of these rpc server lose efficacy, find a substitution from https://chainlist.org/
1616
func testGetNetwork() async throws {
1717
let requestURLstring = "https://" + Networks.Mainnet.name + Constants.infuraHttpScheme + Constants.infuraToken

0 commit comments

Comments
 (0)