Skip to content

Commit d241fbe

Browse files
committed
Add greater than asserts
1 parent e405beb commit d241fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/web3swiftTests/remoteTests/EIP1559Tests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class EIP1559Tests: XCTestCase {
2525
tx.from = EthereumAddress("0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B")!
2626
// Should fail if there would be something wrong with the tx
2727
let res = try await web3.eth.estimateGas(for: tx)
28-
XCTAssertTrue(res > 0)
28+
XCTAssertGreaterThan(res, 0)
2929
}
3030

3131
func testEIP1159GoerliTransaction() async throws {
@@ -41,7 +41,7 @@ final class EIP1559Tests: XCTestCase {
4141
tx.from = EthereumAddress("0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B")!
4242
// Should fail if there would be something wrong with the tx
4343
let res = try await web3.eth.estimateGas(for: tx)
44-
XCTAssertTrue(res > 0)
44+
XCTAssertGreaterThan(res, 0)
4545
}
4646

4747
}

0 commit comments

Comments
 (0)