algorandfoundation / algokit-subscriber-ts

Simple, but flexible / configurable Algorand transaction subscription / indexing mechanism
MIT License
12 stars 6 forks source link

fix: correctly handle when hgi field isn't set #75

Closed neilcampbell closed 3 months ago

neilcampbell commented 3 months ago

Proposed Changes

The gen field was added to a block transaction when hgi was not set. This resulted in an incorrect transaction id being computed.

This PR fixes that issue and adds a test to capture the scenario.