Skip to content

Commit 89a9c5d

Browse files
committed
Fix some warnings in tests
1 parent 3adf0a9 commit 89a9c5d

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

Tests/web3swiftTests/localTests/AdvancedABIv2Tests.swift

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class AdvancedABIv2Tests: LocalTestCase {
4444
// MARK: Read data from ABI flow
4545
// MARK: - Encoding ABI Data flow
4646
let tx = contract.createReadOperation("testSingle")
47-
let testSingle = try await tx!.callContractMethod()
48-
47+
let _ = try await tx!.callContractMethod()
4948
}
5049

5150
func testAdvancedABIv2staticArray() async throws {
@@ -80,8 +79,7 @@ class AdvancedABIv2Tests: LocalTestCase {
8079
// MARK: Read data from ABI flow
8180
// MARK: - Encoding ABI Data flow
8281
let tx = contract.createReadOperation("testStaticArray")
83-
let testStaticArray = try await tx!.callContractMethod()
84-
82+
let _ = try await tx!.callContractMethod()
8583
}
8684

8785
func testAdvancedABIv2dynamicArray() async throws {
@@ -115,8 +113,7 @@ class AdvancedABIv2Tests: LocalTestCase {
115113
contract = web3.contract(abiString, at: receipt.contractAddress, abiVersion: 2)!
116114

117115
let tx = contract.createReadOperation("testDynArray")
118-
let testDynArray = try await tx!.callContractMethod()
119-
116+
let _ = try await tx!.callContractMethod()
120117
}
121118

122119
func testAdvancedABIv2dynamicArrayOfStrings() async throws {
@@ -151,8 +148,7 @@ class AdvancedABIv2Tests: LocalTestCase {
151148
// MARK: Read data from ABI flow
152149
// MARK: - Encoding ABI Data flow
153150
let tx = contract.createReadOperation("testDynOfDyn")
154-
let testDynOfDyn = try await tx!.callContractMethod()
155-
151+
let _ = try await tx!.callContractMethod()
156152
}
157153

158154
func testAdvancedABIv2staticArrayOfStrings() async throws {
@@ -187,8 +183,7 @@ class AdvancedABIv2Tests: LocalTestCase {
187183
// MARK: Read data from ABI flow
188184
// MARK: - Encoding ABI Data flow
189185
let tx = contract.createReadOperation("testStOfDyn")
190-
let testStOfDyn = try await tx!.callContractMethod()
191-
186+
let _ = try await tx!.callContractMethod()
192187
}
193188

194189
func testEmptyArrayDecoding() async throws {

Tests/web3swiftTests/localTests/PersonalSignatureTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class PersonalSignatureTests: XCTestCase {
4444
Thread.sleep(forTimeInterval: 1.0)
4545

4646
let receipt = try await web3.eth.transactionReceipt(txHash)
47-
48-
47+
4948
switch receipt.status {
5049
case .notYetProcessed:
5150
return

0 commit comments

Comments
 (0)