Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS-7733 Tron multiple signing #812

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

tureck1y
Copy link
Collaborator

@tureck1y tureck1y commented Aug 24, 2024

Добавлена поддержка отправки нескольких транзакций одновременно.
Нужно будет тестировать уже на живых данных, я не проверял

@tureck1y tureck1y marked this pull request as ready for review August 24, 2024 15:24
@tureck1y tureck1y requested review from dbaturin and a team as code owners August 24, 2024 15:24
.sign(hash: input.hash, walletPublicKey: manager.wallet.publicKey)
.tryMap { signature in
try manager.txBuilder.buildForSend(rawData: input.rawData, signature: signature)
func sendStakeKit(transactions: [StakeKitTransaction], signer: TransactionSigner) -> AnyPublisher<[TransactionSendResult], SendTxError> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

пришлось бить на паблишеры, компиллятор не справлялся

Comment on lines 309 to 310
guard broadcastResponses.allSatisfy({ $0.result == true }) else {
throw WalletError.failedToSendTx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно так

Suggested change
guard broadcastResponses.allSatisfy({ $0.result == true }) else {
throw WalletError.failedToSendTx
guard broadcastResponses.allSatisfy({ $0.result }) else {
throw WalletError.failedToSendTx

А вообще allSatisfy хитрый, и если broadcastResponses.isEmpty == true то но тоже будет true
можно как вариант добавить )

Andoran90
Andoran90 previously approved these changes Aug 26, 2024
dbaturin
dbaturin previously approved these changes Aug 26, 2024
@tureck1y tureck1y merged commit 979e383 into develop Aug 27, 2024
1 check passed
@tureck1y tureck1y deleted the IOS-7733_tron_multiple_signing branch August 27, 2024 10:15
tureck1y added a commit that referenced this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants