Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Add default case (won't break compiling with new wallet core) (#50)
Browse files Browse the repository at this point in the history
* add default case (won't break if new blockchain)

* Fix Podfile.lock
  • Loading branch information
hewigovens authored Jun 18, 2020
1 parent 1b8f42f commit bec7b49
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DEPENDENCIES:
- TrustSDK/Wallet (from `../`)

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
trunk:
- BigInt
- SwiftLint
- SwiftProtobuf
Expand Down
21 changes: 1 addition & 20 deletions TrustSDK/Classes/Client/Signer/SigningInputEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,26 +135,7 @@ public struct SigningInputEncoder {
var input = try ZilliqaSigningInput(serializedData: data)
input.privateKey = privateKey
return input
case .cardano,
.ton,
.ontology,
.bitcoin,
.bitcoinCash,
.dash,
.digiByte,
.dogecoin,
.decred,
.groestlcoin,
.litecoin,
.monacoin,
.qtum,
.ravencoin,
.viacoin,
.zcash,
.zcoin,
.zelcash,
.elrond,
.bitcoinGold:
default:
throw TrustSDKError.coinNotSupported
}
}
Expand Down
5 changes: 1 addition & 4 deletions TrustSDK/Classes/Client/Signer/SigningOutputDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ public struct SigningOutputDecoder {
return try WavesSigningOutput(serializedData: data)
case .zilliqa:
return try ZilliqaSigningOutput(serializedData: data)
case .cardano,
.ton,
.elrond,
.bitcoinGold:
default:
throw TrustSDKError.coinNotSupported
}
}
Expand Down
21 changes: 1 addition & 20 deletions TrustSDK/Classes/Client/Types/TrustSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,7 @@ public extension TrustSDK {
.waves,
.zilliqa:
return true
case .cardano,
.ton,
.ontology,
.bitcoin,
.bitcoinCash,
.dash,
.digiByte,
.dogecoin,
.decred,
.groestlcoin,
.litecoin,
.monacoin,
.qtum,
.ravencoin,
.viacoin,
.zcash,
.zcoin,
.zelcash,
.elrond,
.bitcoinGold:
default:
return false
}
}
Expand Down

0 comments on commit bec7b49

Please sign in to comment.