gnolang / tm2-js-client

The Tendermint2 JS/TS client (SDK)
https://gno.land
Apache License 2.0
10 stars 4 forks source link

Change the return type of `sendTransaction` #78

Closed zivkovicmilos closed 1 year ago

zivkovicmilos commented 1 year ago

Description

This PR changes the return type of Provider sendTransaction to return the transaction result it receives from the node.

The change was motivated to support return data from the transaction itself. As a result, this is propagated out to all method users, meaning the top level API will need to give users the support to send either a Sync or Commit transaction.