File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Tests/web3swiftTests/localTests Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ public struct RLP {
18
18
static var length56 = BigUInt ( UInt ( 56 ) )
19
19
static var lengthMax = ( BigUInt ( UInt ( 1 ) ) << 256 )
20
20
21
- internal static func encode( _ element: Any ? ) -> Data ? {
21
+ internal static func encode( element: Any ? ) -> Data ? {
22
22
if let string = element as? String {
23
23
return encode ( string)
24
-
25
24
} else if let data = element as? Data {
26
25
return encode ( data)
27
26
} else if let biguint = element as? BigUInt {
@@ -115,7 +114,7 @@ public struct RLP {
115
114
internal static func encode( _ elements: [ Any ? ] ) -> Data ? {
116
115
var encodedData = Data ( )
117
116
for e in elements {
118
- if let encoded = encode ( e) {
117
+ if let encoded = encode ( element : e) {
119
118
encodedData. append ( encoded)
120
119
} else {
121
120
guard let asArray = e as? [ Any ] else { return nil }
Original file line number Diff line number Diff line change @@ -471,7 +471,6 @@ class TransactionsTests: XCTestCase {
471
471
// check that we recovered the address correctly
472
472
XCTAssertEqual ( jsonTxn. sender!. address, expectedAddress. address, " Recovered Address Mismatch " )
473
473
} catch {
474
-
475
474
return XCTFail ( String ( describing: error) )
476
475
}
477
476
}
You can’t perform that action at this time.
0 commit comments