Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ extension WalletConnectorService {
let transactionId = try await signer.signTransaction(sessionId: sessionId, chain: chain.map(), transaction: transaction.map(), simulation: simulation)
let response = walletConnect.encodeSignTransaction(chain: chain, transactionId: transactionId)
return .response(response.map())
case .signAllTransactions(let chain, let type, let transactions):
guard transactions.count <= 1, let data = transactions.first else {
throw WalletConnectorServiceError.unresolvedMethod("signAllTransactions with multiple transactions is not yet supported")
}
let simulation = try await simulateSendTransaction(chain: chain, transactionType: type, data: data)
let transaction = try walletConnect.decodeSendTransaction(transactionType: type, data: data)
let signed = try await signer.signTransaction(sessionId: sessionId, chain: chain.map(), transaction: transaction.map(), simulation: simulation)
let response = walletConnect.encodeSignAllTransactions(signedTransactions: [signed])
return .response(response.map())
case .sendTransaction(let chain, let type, let data):
let simulation = try await simulateSendTransaction(chain: chain, transactionType: type, data: data)
let transaction = try walletConnect.decodeSendTransaction(transactionType: type, data: data)
Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 169 files