@@ -195,7 +195,7 @@ class TransactionsTests: XCTestCase {
195195 // check that we recovered the address correctly
196196 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
197197 } catch {
198-
198+
199199 return XCTFail ( String ( describing: error) )
200200 }
201201 }
@@ -243,7 +243,7 @@ class TransactionsTests: XCTestCase {
243243 // check that we recovered the address correctly
244244 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
245245 } catch {
246-
246+
247247 return XCTFail ( String ( describing: error) )
248248 }
249249 }
@@ -264,7 +264,7 @@ class TransactionsTests: XCTestCase {
264264 // check that we recovered the address correctly
265265 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
266266 } catch {
267-
267+
268268 return XCTFail ( String ( describing: error) )
269269 }
270270 }
@@ -312,7 +312,7 @@ class TransactionsTests: XCTestCase {
312312 // check that we recovered the address correctly
313313 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
314314 } catch {
315-
315+
316316 return XCTFail ( String ( describing: error) )
317317 }
318318 }
@@ -333,7 +333,7 @@ class TransactionsTests: XCTestCase {
333333 // check that we recovered the address correctly
334334 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
335335 } catch {
336-
336+
337337 return XCTFail ( String ( describing: error) )
338338 }
339339 }
@@ -381,7 +381,7 @@ class TransactionsTests: XCTestCase {
381381 // check that we recovered the address correctly
382382 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
383383 } catch {
384-
384+
385385 return XCTFail ( String ( describing: error) )
386386 }
387387 }
@@ -402,7 +402,7 @@ class TransactionsTests: XCTestCase {
402402 // check that we recovered the address correctly
403403 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
404404 } catch {
405-
405+
406406 return XCTFail ( String ( describing: error) )
407407 }
408408 }
@@ -450,7 +450,7 @@ class TransactionsTests: XCTestCase {
450450 // check that we recovered the address correctly
451451 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
452452 } catch {
453-
453+
454454 return XCTFail ( String ( describing: error) )
455455 }
456456 }
@@ -467,11 +467,11 @@ class TransactionsTests: XCTestCase {
467467 // check that the transaction type is eip1559
468468 XCTAssertEqual ( jsonTxn. type, . eip1559, " Transaction Type Mismatch " )
469469 // check the hash, if they match everything was parsed, and re-encoded correctly
470- XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
470+ XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch Shoult " )
471471 // check that we recovered the address correctly
472472 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
473473 } catch {
474-
474+
475475 return XCTFail ( String ( describing: error) )
476476 }
477477 }
@@ -519,7 +519,7 @@ class TransactionsTests: XCTestCase {
519519 // check that we recovered the address correctly
520520 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
521521 } catch {
522-
522+
523523 return XCTFail ( String ( describing: error) )
524524 }
525525 }
@@ -540,7 +540,7 @@ class TransactionsTests: XCTestCase {
540540 // check that we recovered the address correctly
541541 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
542542 } catch {
543-
543+
544544 return XCTFail ( String ( describing: error) )
545545 }
546546 }
@@ -588,7 +588,7 @@ class TransactionsTests: XCTestCase {
588588 // check that we recovered the address correctly
589589 XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
590590 } catch {
591-
591+
592592 return XCTFail ( String ( describing: error) )
593593 }
594594 }
@@ -612,16 +612,16 @@ class TransactionsTests: XCTestCase {
612612 let publicKey = Utilities . privateToPublic ( privateKeyData, compressed: false )
613613 let sender = Utilities . publicToAddress ( publicKey!)
614614 transaction. chainID = 1
615-
615+
616616 let hash = transaction. hashForSignature ( )
617617 let expectedHash = " 0xdaf5a779ae972f972197303d7b574746c7ef83eadac0f2791ad23db92e4c8e53 " . stripHexPrefix ( )
618618 XCTAssertEqual ( hash!. toHexString ( ) , expectedHash, " Transaction signature failed " )
619619 try transaction. sign ( privateKey: privateKeyData, useExtraEntropy: false )
620-
620+
621621 XCTAssertEqual ( transaction. v, 37 , " Transaction signature failed " )
622622 XCTAssertEqual ( sender, transaction. sender)
623623 } catch {
624-
624+
625625 XCTFail ( )
626626 }
627627 }
@@ -640,12 +640,12 @@ class TransactionsTests: XCTestCase {
640640 let policies = Policies ( gasLimitPolicy: . manual( 78423 ) )
641641 let result = try await writeTX. writeToChain ( password: " " , policies: policies, sendRaw: false )
642642 let txHash = Data . fromHex ( result. hash. stripHexPrefix ( ) ) !
643-
643+
644644
645645 Thread . sleep ( forTimeInterval: 1.0 )
646646
647647 let receipt = try await web3. eth. transactionReceipt ( txHash)
648-
648+
649649 XCTAssert ( receipt. status == . ok)
650650
651651 switch receipt. status {
@@ -656,13 +656,13 @@ class TransactionsTests: XCTestCase {
656656 }
657657
658658 let details = try await web3. eth. transactionDetails ( txHash)
659-
659+
660660 // FIXME: Re-enable this test.
661661// XCTAssertEqual(details.transaction.gasLimit, BigUInt(78423))
662662 } catch Web3Error . nodeError( let descr) {
663663 guard descr == " insufficient funds for gas * price + value " else { return XCTFail ( ) }
664664 } catch {
665-
665+
666666 XCTFail ( )
667667 }
668668 }
0 commit comments