-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
.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> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пришлось бить на паблишеры, компиллятор не справлялся
guard broadcastResponses.allSatisfy({ $0.result == true }) else { | ||
throw WalletError.failedToSendTx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
можно так
guard broadcastResponses.allSatisfy({ $0.result == true }) else { | |
throw WalletError.failedToSendTx | |
guard broadcastResponses.allSatisfy({ $0.result }) else { | |
throw WalletError.failedToSendTx |
А вообще allSatisfy
хитрый, и если broadcastResponses.isEmpty == true
то но тоже будет true
можно как вариант добавить )
7c10774
Добавлена поддержка отправки нескольких транзакций одновременно.
Нужно будет тестировать уже на живых данных, я не проверял