wallet_bridge_api doesn't accept some transaction formats
Code is on branch: origin/mk-bug-with-wallet-bridge-api
- shows how to fix the transaction, to be accepted by the method wallet_bridge_api.broadcast_transaction_synchronous
Sending with wallet_bridge_api.broadcast_transaction_synchronous
is not possible with data got directly from wallet.api.create_account
. For the broadcast to work properly, you need to modify the transaction returned from the wallet.api.create_account
method.
The wallet.api.sign_transaction
signing method expects transaction directly from the wallet.api.create_account
method. Changed transaction (which operates correctly with wallet_bridge_api.broadcast_transaction_synchronous
) does not work with wallet.api.sign_transaction
.
Both methods should accept two transaction formats. Examples of data changes are in tests.
This branch contains tests that allow you to check the operation of the program after applying fix. https://gitlab.syncad.com/hive/hive/-/commits/mk-test-transaction-broadcast