Skip to content

Commit

Permalink
Transponder reset was to early
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenVanZanten committed Mar 7, 2019
1 parent b581261 commit 266ea0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VergeiOS/Models/TxProposalResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Foundation

public struct TxProposalResponse: Decodable {

public let createdOn: UInt32
public let createdOn: UInt32?
public let coin: String
public let id: String
public let network: String
Expand Down
4 changes: 2 additions & 2 deletions VergeiOS/Wallet/TxTransponder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ class TxTransponder {

public func send(txp: TxProposalResponse, completion: @escaping completionType) {
self.completion = completion
self.step = .publish
self.previousTxp = nil

// Publish the tx proposal and start the sequence.
walletClient.publishTxProposal(txp: txp, completion: completionHandler)
Expand Down Expand Up @@ -92,6 +90,8 @@ class TxTransponder {

// Complete the sequence.
DispatchQueue.main.async {
self.step = .publish
self.previousTxp = nil
self.completion(txp, errorResponse, error)
}
}
Expand Down

0 comments on commit 266ea0c

Please sign in to comment.