Skip to content

Commit

Permalink
Merge pull request #5128 from thesan/keep-budget-spending-typo
Browse files Browse the repository at this point in the history
Revert "Fix BudgetSpendingEvent typo"
  • Loading branch information
kdembler committed Apr 8, 2024
2 parents 713d105 + b6518ce commit 5c57bc2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions query-node/mappings/src/workingGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,14 @@ export async function workingGroups_BudgetSet({ store, event }: EventContext & S
}

export async function workingGroups_BudgetSpending({ store, event }: EventContext & StoreContext): Promise<void> {
const [receiver, amount, optRationale] = new WorkingGroup_BudgetSpendingEvent_V1001(event).params
const [reciever, amount, optRationale] = new WorkingGroup_BudgetSpendingEvent_V1001(event).params
const group = await getWorkingGroupOrFail(store, event)

const budgetSpendingEvent = new BudgetSpendingEvent({
...genericEventFields(event),
group,
amount,
receiver: receiver.toString(),
reciever: reciever.toString(),
rationale: optRationale.isSome ? bytesToString(optRationale.unwrap()) : undefined,
})

Expand Down
4 changes: 2 additions & 2 deletions query-node/schemas/workingGroupsEvents.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,8 @@ type BudgetSpendingEvent implements Event @entity {
"Related group"
group: WorkingGroup!

"Receiver account address"
receiver: String!
"Reciever account address"
reciever: String!

"Amount beeing spent"
amount: BigInt!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class SpendBudgetFixture extends BaseWorkingGroupFixture {
protected assertQueryNodeEventIsValid(qEvent: BudgetSpendingEventFieldsFragment, i: number): void {
assert.equal(qEvent.group.name, this.group)
assert.equal(qEvent.amount, this.amounts[i].toString())
assert.equal(qEvent.receiver, this.recievers[i])
assert.equal(qEvent.reciever, this.recievers[i])
assert.equal(qEvent.rationale, this.getRationale(this.recievers[i]))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ fragment BudgetSpendingEventFields on BudgetSpendingEvent {
group {
name
}
receiver
reciever
amount
rationale
}
Expand Down

0 comments on commit 5c57bc2

Please sign in to comment.