blockfrost / blockfrost-go

Golang SDK for Blockfrost.io
Apache License 2.0
23 stars 9 forks source link

Wrong Type for "tx" field in TransactionPayload with webhook #79

Closed photostorm closed 7 months ago

photostorm commented 7 months ago

The "tx" field in TransactionPayload with webhook does not match what is actually sent from webhook for Transactions

https://github.com/blockfrost/blockfrost-go/blob/fe321c8e937909bdd2ec475d1e383929f39b8351/webhook.go#L25

slowbackspace commented 7 months ago

Hi @photostorm, thanks for reporting the issue, you are correct. Tx field should refer to TransactionContent instead of Transaction. I'm fixing it in https://github.com/blockfrost/blockfrost-go/pull/80.

edit: released as 0.2.2