forked from Electric-Coin-Company/zashi-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Electric-Coin-Company#1092] Adopt proposal API (Electric-Coin-Compan…
…y#1117) - Final copy
- Loading branch information
1 parent
1bf484c
commit c67323d
Showing
5 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ public enum SupportDataGenerator { | |
public enum Constants { | ||
public static let email = "[email protected]" | ||
public static let subject = "Zashi" | ||
public static let subjectPPE = "Zashi - transaction error" | ||
public static let subjectPPE = L10n.ProposalPartial.mailSubject | ||
} | ||
|
||
public static func generate() -> SupportData { | ||
|
@@ -48,22 +48,14 @@ public enum SupportDataGenerator { | |
public static func generatePartialProposalError(txIds: [String]) -> SupportData { | ||
let data = SupportDataGenerator.generate() | ||
|
||
let idsString = txIds.map { id in | ||
"- ID: \(id)" | ||
} | ||
.joined(separator: "\n") | ||
|
||
let message = | ||
""" | ||
Hi Zashi Team, | ||
\(L10n.ProposalPartial.mailPart1) | ||
While sending a transaction, I encountered an error state. | ||
\(L10n.ProposalPartial.mailPart2) | ||
This is the list of the transaction IDs: | ||
\(idsString.description) | ||
\(L10n.ProposalPartial.mailPart3) | ||
Thanks for your support. | ||
\(data.message) | ||
""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters