yuan-xy / libra-client

A python client for Libra network.
MIT License
30 stars 7 forks source link

wait_for_transaction #7

Closed huangxingge closed 4 years ago

huangxingge commented 4 years ago

There are two reasons to verify whether the major_status of TransactionInfo is more suitable:

  1. Can get error information
  2. Some transactions are successful without events, such as sending a contract
huangxingge commented 4 years ago

Seems to understand the reason, thank you for providing such an excellent library

huangxingge commented 4 years ago

Just tried it, sending a transaction that exceeds all my balance is the same as sending a contract transaction return

yuan-xy commented 4 years ago

You are right, check major_status of TransactionInfo is more suitable.