@@ -235,7 +235,7 @@ class TransactionsTests: XCTestCase {
235
235
236
236
// now sign the transaction with the private key
237
237
try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
238
- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
238
+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
239
239
240
240
// check the hash, if they match everything was parsed, and re-encoded correctly
241
241
XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -304,7 +304,7 @@ class TransactionsTests: XCTestCase {
304
304
305
305
// now sign the transaction with the private key
306
306
try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
307
- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
307
+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
308
308
309
309
// check the hash, if they match everything was parsed, and re-encoded correctly
310
310
XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -373,7 +373,7 @@ class TransactionsTests: XCTestCase {
373
373
374
374
// now sign the transaction with the private key
375
375
try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
376
- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
376
+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
377
377
378
378
// check the hash, if they match everything was parsed, and re-encoded correctly
379
379
XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -442,7 +442,7 @@ class TransactionsTests: XCTestCase {
442
442
443
443
// now sign the transaction with the private key
444
444
try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
445
- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
445
+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
446
446
447
447
// check the hash, if they match everything was parsed, and re-encoded correctly
448
448
XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -511,7 +511,7 @@ class TransactionsTests: XCTestCase {
511
511
512
512
// now sign the transaction with the private key
513
513
try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
514
- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
514
+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
515
515
516
516
// check the hash, if they match everything was parsed, and re-encoded correctly
517
517
XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -580,7 +580,7 @@ class TransactionsTests: XCTestCase {
580
580
581
581
// now sign the transaction with the private key
582
582
try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
583
- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
583
+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
584
584
585
585
// check the hash, if they match everything was parsed, and re-encoded correctly
586
586
XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
0 commit comments