From 2b91acc23a5220b5146d61ba96796bd8c5837e2c Mon Sep 17 00:00:00 2001 From: Julien Date: Mon, 23 Sep 2024 11:41:32 +0200 Subject: [PATCH] fix(public-allocator): missing field at metamorpho creation --- schema.graphql | 6 +++--- src/meta-morpho-factory.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/schema.graphql b/schema.graphql index 6f17133..5f1762f 100644 --- a/schema.graphql +++ b/schema.graphql @@ -2424,7 +2424,7 @@ type MetaMorphoPublicAllocatorMarket @entity(immutable: true) { } -type SetFlowCapsEvent implements Event @entity(immutable: true) @transaction { +type SetFlowCapsEvent @entity(immutable: true) @transaction { " { Transaction hash }{ Log index } " id: Bytes! @@ -2458,7 +2458,7 @@ type SetFlowCapsEvent implements Event @entity(immutable: true) @transaction { flowCaps: [MarketFlowCapsSet!]! @derivedFrom(field: "setFlowCapsEvent") } -type PublicAllocatorReallocationToEvent implements Event @entity(immutable: true) @transaction { +type PublicAllocatorReallocationToEvent @entity(immutable: true) @transaction { " { Transaction hash }{ Log index } " id: Bytes! @@ -2496,7 +2496,7 @@ type PublicAllocatorReallocationToEvent implements Event @entity(immutable: true flowCaps: MarketFlowCapsSet! @derivedFrom(field: "publicReallocationEvent") } -type PublicAllocatorWithdrawalEvent implements Event @entity(immutable: true) @transaction { +type PublicAllocatorWithdrawalEvent @entity(immutable: true) @transaction { " { Transaction hash }{ Log index } " id: Bytes! diff --git a/src/meta-morpho-factory.ts b/src/meta-morpho-factory.ts index abbd14b..ac322bb 100644 --- a/src/meta-morpho-factory.ts +++ b/src/meta-morpho-factory.ts @@ -48,5 +48,7 @@ export function handleCreateMetaMorpho(event: CreateMetaMorphoEvent): void { event.params.metaMorpho ).getAccount().id; + metaMorpho.hasPublicAllocator = false; + metaMorpho.save(); }