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

Commit

Permalink
Add missing encoder cases (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens committed Nov 25, 2020
1 parent 812111a commit ab59b13
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions TrustSDK/Classes/Client/Signer/SigningInputEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public struct SigningInputEncoder {
return input
case .cosmos,
.kava,
.terra:
.terra,
.bandChain:
var input = try CosmosSigningInput(serializedData: data)
input.privateKey = privateKey
return input
Expand All @@ -41,7 +42,8 @@ public struct SigningInputEncoder {
.poanetwork,
.tomoChain,
.thunderToken,
.wanchain:
.wanchain,
.smartChain:
var input = try EthereumSigningInput(serializedData: data)
input.privateKey = privateKey
return input
Expand Down Expand Up @@ -135,6 +137,15 @@ public struct SigningInputEncoder {
var input = try ZilliqaSigningInput(serializedData: data)
input.privateKey = privateKey
return input
case .ontology:
var input = try OntologySigningInput(serializedData: data)
input.payerPrivateKey = privateKey
input.ownerPrivateKey = privateKey
return input
case .elrond:
var input = try ElrondSigningInput(serializedData: data)
input.privateKey = privateKey
return input
default:
throw TrustSDKError.coinNotSupported
}
Expand Down

0 comments on commit ab59b13

Please sign in to comment.