@@ -331,8 +331,7 @@ class TransactionsTests: XCTestCase {
331
331
// check the hash, if they match everything was parsed, and re-encoded correctly
332
332
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
333
333
// check that we recovered the address correctly
334
- // FIXME: Return this
335
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
334
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
336
335
} catch {
337
336
print ( error)
338
337
return XCTFail ( String ( describing: error) )
@@ -354,8 +353,7 @@ class TransactionsTests: XCTestCase {
354
353
// check the hash, if they match everything was parsed, and re-encoded correctly
355
354
XCTAssertEqual ( rlpTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
356
355
// check that we recovered the address correctly
357
- // FIXME: return me back
358
- // XCTAssertEqual(rlpTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
356
+ XCTAssertEqual ( rlpTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
359
357
}
360
358
361
359
// test signing a EIP-2930 transaction (without accessList)
@@ -381,8 +379,7 @@ class TransactionsTests: XCTestCase {
381
379
// check the hash, if they match everything was parsed, and re-encoded correctly
382
380
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
383
381
// check that we recovered the address correctly
384
- // FIXME: return me back
385
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
382
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
386
383
} catch {
387
384
print ( error)
388
385
return XCTFail ( String ( describing: error) )
@@ -403,8 +400,7 @@ class TransactionsTests: XCTestCase {
403
400
// check the hash, if they match everything was parsed, and re-encoded correctly
404
401
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
405
402
// check that we recovered the address correctly
406
- // FIXME: return me back
407
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
403
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
408
404
} catch {
409
405
print ( error)
410
406
return XCTFail ( String ( describing: error) )
@@ -426,8 +422,7 @@ class TransactionsTests: XCTestCase {
426
422
// check the hash, if they match everything was parsed, and re-encoded correctly
427
423
XCTAssertEqual ( rlpTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
428
424
// check that we recovered the address correctly
429
- // FIXME: return me back
430
- // XCTAssertEqual(rlpTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
425
+ XCTAssertEqual ( rlpTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
431
426
}
432
427
433
428
// test signing a EIP-2930 transaction (with accessList)
@@ -453,8 +448,7 @@ class TransactionsTests: XCTestCase {
453
448
// check the hash, if they match everything was parsed, and re-encoded correctly
454
449
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
455
450
// check that we recovered the address correctly
456
- // FIXME: return me back
457
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
451
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
458
452
} catch {
459
453
print ( error)
460
454
return XCTFail ( String ( describing: error) )
@@ -475,8 +469,7 @@ class TransactionsTests: XCTestCase {
475
469
// check the hash, if they match everything was parsed, and re-encoded correctly
476
470
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
477
471
// check that we recovered the address correctly
478
- // FIXME: return me back
479
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
472
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
480
473
} catch {
481
474
print ( error)
482
475
return XCTFail ( String ( describing: error) )
@@ -498,8 +491,7 @@ class TransactionsTests: XCTestCase {
498
491
// check the hash, if they match everything was parsed, and re-encoded correctly
499
492
XCTAssertEqual ( rlpTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
500
493
// check that we recovered the address correctly
501
- // FIXME: return me back
502
- // XCTAssertEqual(rlpTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
494
+ XCTAssertEqual ( rlpTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
503
495
}
504
496
505
497
// test signing a EIP-1559 transaction (without accessList)
@@ -525,8 +517,7 @@ class TransactionsTests: XCTestCase {
525
517
// check the hash, if they match everything was parsed, and re-encoded correctly
526
518
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
527
519
// check that we recovered the address correctly
528
- // FIXME: return me back
529
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
520
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
530
521
} catch {
531
522
print ( error)
532
523
return XCTFail ( String ( describing: error) )
@@ -547,8 +538,7 @@ class TransactionsTests: XCTestCase {
547
538
// check the hash, if they match everything was parsed, and re-encoded correctly
548
539
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
549
540
// check that we recovered the address correctly
550
- // FIXME: return me back
551
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
541
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
552
542
} catch {
553
543
print ( error)
554
544
return XCTFail ( String ( describing: error) )
@@ -570,8 +560,7 @@ class TransactionsTests: XCTestCase {
570
560
// check the hash, if they match everything was parsed, and re-encoded correctly
571
561
XCTAssertEqual ( rlpTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
572
562
// check that we recovered the address correctly
573
- // FIXME: return me back
574
- // XCTAssertEqual(rlpTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
563
+ XCTAssertEqual ( rlpTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
575
564
}
576
565
577
566
// test signing a EIP-1559 transaction (with accessList)
@@ -597,8 +586,7 @@ class TransactionsTests: XCTestCase {
597
586
// check the hash, if they match everything was parsed, and re-encoded correctly
598
587
XCTAssertEqual ( jsonTxn. hash!. toHexString ( ) . addHexPrefix ( ) , vector. hash, " Transaction Hash Mismatch " )
599
588
// check that we recovered the address correctly
600
- // FIXME: return me back
601
- // XCTAssertEqual(jsonTxn.sender!.address, expectedAddress.address, "Recovered Address Mismatch")
589
+ XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
602
590
} catch {
603
591
print ( error)
604
592
return XCTFail ( String ( describing: error) )
0 commit comments