Skip to content

Commit e6fa0e6

Browse files
committed
[TIDY] Swiftformat
1 parent 634a528 commit e6fa0e6

File tree

91 files changed

+151
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+151
-156
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444

4545
runs-on: ubuntu-latest
4646

47-
container:
48-
image: swift:5.9-jammy
47+
container: swift:6.0
4948

5049
env:
5150
TESTS_PRIVATEKEY: ${{ secrets.TESTS_PRIVATEKEY }}

web3swift/src/Account/EthereumAccount+SignTransaction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// EthereumAccount+SignTransaction.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Account/EthereumAccount.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// EthereumAccount.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Account/EthereumKeyStorage+Password.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// EthereumKeyStorage+Password.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Account/EthereumKeyStorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// EthereumKeyStorage.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Account/Signature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// Signature.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Account/TypedData.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// TypedData.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

@@ -61,8 +61,8 @@ extension TypedData {
6161
// Whole data blob hash to sign
6262
public func signableHash() throws -> Data {
6363
var data = Data([0x19, 0x01])
64-
data.append(try encodeData(data: domain, type: "EIP712Domain").web3.keccak256)
65-
data.append(try encodeData(data: message, type: primaryType).web3.keccak256)
64+
try data.append(encodeData(data: domain, type: "EIP712Domain").web3.keccak256)
65+
try data.append(encodeData(data: message, type: primaryType).web3.keccak256)
6666
return data.web3.keccak256
6767
}
6868

@@ -88,7 +88,6 @@ extension TypedData {
8888
}
8989

9090
let recursiveEncoded: [UInt8] = try valueTypes.flatMap { variable -> [UInt8] in
91-
9291
// Decomposite the type if it is array type
9392
let components = variable.type.components(separatedBy: CharacterSet(charactersIn: "[]"))
9493
let parsedType = components[0]

web3swift/src/Client/BaseEthereumClient+Call.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// BaseEthereumClient+Call.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Client/BaseEthereumClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// BaseEthereumClient.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

web3swift/src/Client/HTTP/EthereumHttpClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// web3.swift
2+
// EthereumHttpClient.swift
33
// Copyright © 2022 Argent Labs Limited. All rights reserved.
44
//
55

0 commit comments

Comments
 (0)