@@ -235,7 +235,7 @@ class TransactionsTests: XCTestCase {
235235
236236 // now sign the transaction with the private key
237237 try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
238- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
238+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
239239
240240 // check the hash, if they match everything was parsed, and re-encoded correctly
241241 XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -304,7 +304,7 @@ class TransactionsTests: XCTestCase {
304304
305305 // now sign the transaction with the private key
306306 try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
307- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
307+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
308308
309309 // check the hash, if they match everything was parsed, and re-encoded correctly
310310 XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -373,7 +373,7 @@ class TransactionsTests: XCTestCase {
373373
374374 // now sign the transaction with the private key
375375 try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
376- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
376+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
377377
378378 // check the hash, if they match everything was parsed, and re-encoded correctly
379379 XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -442,7 +442,7 @@ class TransactionsTests: XCTestCase {
442442
443443 // now sign the transaction with the private key
444444 try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
445- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
445+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
446446
447447 // check the hash, if they match everything was parsed, and re-encoded correctly
448448 XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -511,7 +511,7 @@ class TransactionsTests: XCTestCase {
511511
512512 // now sign the transaction with the private key
513513 try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
514- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
514+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
515515
516516 // check the hash, if they match everything was parsed, and re-encoded correctly
517517 XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
@@ -580,7 +580,7 @@ class TransactionsTests: XCTestCase {
580580
581581 // now sign the transaction with the private key
582582 try jsonTxn. sign ( privateKey: privateKeyData, useExtraEntropy: false )
583- let rawTxn = jsonTxn. encode ( ) !. toHexString ( ) . addHexPrefix ( )
583+ let rawTxn = jsonTxn. encode ( for : . transaction ) !. toHexString ( ) . addHexPrefix ( )
584584
585585 // check the hash, if they match everything was parsed, and re-encoded correctly
586586 XCTAssertEqual ( rawTxn, vector. RLP, " Transaction Encoding Mismatch " )
0 commit comments