Skip to content

Commit

Permalink
fix: chainfollower crashing due to ogmios upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed Apr 28, 2024
1 parent 6787aca commit 243e682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-cardano-db-hasura/src/ChainFollower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class ChainFollower {
if (b !== undefined && b.transactions !== undefined) {
for (const tx of b.transactions) {
if (tx.mint !== undefined) {
for (const entry of Object.entries(tx.mint.assets)) {
for (const entry of Object.entries(tx.mint)) {
const [policyId, assetName] = entry[0].split('.')
const assetId = `${policyId}${assetName !== undefined ? assetName : ''}`
if (!(await this.hasuraClient.hasAsset(assetId))) {
Expand Down

0 comments on commit 243e682

Please sign in to comment.