developer-content icon indicating copy to clipboard operation
developer-content copied to clipboard

Refactor/versions (versioned transactions doc)

Open EmekaManuel opened this issue 5 months ago • 2 comments

Problem

  • Inconsistent use of .then() and async/await for handling asynchronous operations.
  • Lack of error handling for blockchain information fetching.
  • Unorganized fetching logic within the main code.

Summary of Changes

  • Replaced .then() with async/await to maintain consistency in asynchronous code handling.
  • Added try/catch blocks to improve error handling and logging.
  • Encapsulated the fetching logic into a dedicated getBlockchainInfo function for better code organization and readability.

EmekaManuel avatar Aug 27 '24 05:08 EmekaManuel