Main issue:
When only one transaction is signed with maiar app, walletConnectProvider - signTransactions method throws an error: Wallet Connect could not sign the transactions.
This happens because of the response of the erd_batch_sign method which returns an object that contains the signature or an array of objects with signatures.
This case is not handled in signTransactions method.
An idea would be to change the erd_batch_sign method to return only an array, but a workaround for this limitation is to pass the transaction from the list (only one) to the signTransaction method which does the correct transaction handling.
Main issue: When only one transaction is signed with maiar app, walletConnectProvider - signTransactions method throws an error:
Wallet Connect could not sign the transactions
.This happens because of the response of the
erd_batch_sign
method which returns an object that contains the signature or an array of objects with signatures. This case is not handled insignTransactions
method.An idea would be to change the
erd_batch_sign
method to return only an array, but a workaround for this limitation is to pass the transaction from the list (only one) to thesignTransaction
method which does the correct transaction handling.