Skip to content

Commit

Permalink
feebps can be int
Browse files Browse the repository at this point in the history
Signed-off-by: stadolf <[email protected]>
  • Loading branch information
elmariachi111 committed Oct 27, 2023
1 parent 6bd8130 commit 89a84ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion subgraph/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}

Expand Down
2 changes: 1 addition & 1 deletion subgraph/src/crowdSaleMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a84ca

Please sign in to comment.