From 89a84ca91565a0607b6e05942e0e477f9be80dcd Mon Sep 17 00:00:00 2001 From: stadolf Date: Fri, 27 Oct 2023 19:08:42 +0200 Subject: [PATCH] feebps can be int Signed-off-by: stadolf --- subgraph/schema.graphql | 2 +- subgraph/src/crowdSaleMapping.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subgraph/schema.graphql b/subgraph/schema.graphql index f2568f42..f11b8ca7 100644 --- a/subgraph/schema.graphql +++ b/subgraph/schema.graphql @@ -133,7 +133,7 @@ type CrowdSale @entity { permissioner: Bytes! #a crowdsale can be configured with an individual permissioner claimedAt: BigInt # the date when the auctioneer has claimed their return (depending on failed / settled sales) contributions: [Contribution!] @derivedFrom(field: "crowdSale") - feeBp: BigInt # the percentage fee that will be cut from the crowdsale upon its success + feeBp: Int # the percentage fee that will be cut from the crowdsale upon its success type: SaleType! } diff --git a/subgraph/src/crowdSaleMapping.ts b/subgraph/src/crowdSaleMapping.ts index 218c09b4..0c5bdfcb 100644 --- a/subgraph/src/crowdSaleMapping.ts +++ b/subgraph/src/crowdSaleMapping.ts @@ -27,7 +27,7 @@ export function handleStarted(event: StartedEvent): void { crowdSale.ipt = ipt.id crowdSale.issuer = event.params.issuer - crowdSale.feeBp = BigInt.fromU32(event.params.feeBp) + crowdSale.feeBp = event.params.feeBp crowdSale.beneficiary = event.params.sale.beneficiary crowdSale.closingTime = event.params.sale.closingTime crowdSale.createdAt = event.block.timestamp