Merge pull request #1333 from pacu/swiftlint
[#1332] Enable Swiftlint workflow
This commit is contained in:
commit
10dc5ed861
|
@ -0,0 +1,17 @@
|
||||||
|
name: SwiftLint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/swiftlint.yml'
|
||||||
|
- '.swiftlint.yml'
|
||||||
|
- '**/*.swift'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
SwiftLint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: GitHub Action for SwiftLint
|
||||||
|
uses: norio-nomura/action-swiftlint@3.2.1
|
||||||
|
|
|
@ -31,7 +31,7 @@ struct BundleCheckpointSource: CheckpointSource {
|
||||||
|
|
||||||
func birthday(for height: BlockHeight) -> Checkpoint {
|
func birthday(for height: BlockHeight) -> Checkpoint {
|
||||||
Checkpoint.birthday(
|
Checkpoint.birthday(
|
||||||
with: height,
|
with: height,
|
||||||
checkpointDirectory: BundleCheckpointURLProvider.default.url(self.network)
|
checkpointDirectory: BundleCheckpointURLProvider.default.url(self.network)
|
||||||
) ?? saplingActivation
|
) ?? saplingActivation
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,10 +137,6 @@ protocol LightWalletServiceResponse {
|
||||||
struct LightWalletServiceFactory {
|
struct LightWalletServiceFactory {
|
||||||
let endpoint: LightWalletEndpoint
|
let endpoint: LightWalletEndpoint
|
||||||
|
|
||||||
init(endpoint: LightWalletEndpoint) {
|
|
||||||
self.endpoint = endpoint
|
|
||||||
}
|
|
||||||
|
|
||||||
func make() -> LightWalletService {
|
func make() -> LightWalletService {
|
||||||
return LightWalletGRPCService(endpoint: endpoint)
|
return LightWalletGRPCService(endpoint: endpoint)
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,6 @@ import libzcashlc
|
||||||
struct ZcashKeyDerivationBackend: ZcashKeyDerivationBackendWelding {
|
struct ZcashKeyDerivationBackend: ZcashKeyDerivationBackendWelding {
|
||||||
let networkType: NetworkType
|
let networkType: NetworkType
|
||||||
|
|
||||||
init(networkType: NetworkType) {
|
|
||||||
self.networkType = networkType
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: Address metadata and validation
|
// MARK: Address metadata and validation
|
||||||
static func getAddressMetadata(_ address: String) -> AddressMetadata? {
|
static func getAddressMetadata(_ address: String) -> AddressMetadata? {
|
||||||
var networkId: UInt32 = 0
|
var networkId: UInt32 = 0
|
||||||
|
|
Loading…
Reference in New Issue