Skip to content

Commit 5c57bc2

Browse files
authored
Merge pull request #5128 from thesan/keep-budget-spending-typo
Revert "Fix BudgetSpendingEvent typo"
2 parents 713d105 + b6518ce commit 5c57bc2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

query-node/mappings/src/workingGroups.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,14 +1022,14 @@ export async function workingGroups_BudgetSet({ store, event }: EventContext & S
10221022
}
10231023

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

10281028
const budgetSpendingEvent = new BudgetSpendingEvent({
10291029
...genericEventFields(event),
10301030
group,
10311031
amount,
1032-
receiver: receiver.toString(),
1032+
reciever: reciever.toString(),
10331033
rationale: optRationale.isSome ? bytesToString(optRationale.unwrap()) : undefined,
10341034
})
10351035

query-node/schemas/workingGroupsEvents.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@ type BudgetSpendingEvent implements Event @entity {
671671
"Related group"
672672
group: WorkingGroup!
673673

674-
"Receiver account address"
675-
receiver: String!
674+
"Reciever account address"
675+
reciever: String!
676676

677677
"Amount beeing spent"
678678
amount: BigInt!

tests/network-tests/src/fixtures/workingGroups/SpendBudgetFixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class SpendBudgetFixture extends BaseWorkingGroupFixture {
5252
protected assertQueryNodeEventIsValid(qEvent: BudgetSpendingEventFieldsFragment, i: number): void {
5353
assert.equal(qEvent.group.name, this.group)
5454
assert.equal(qEvent.amount, this.amounts[i].toString())
55-
assert.equal(qEvent.receiver, this.recievers[i])
55+
assert.equal(qEvent.reciever, this.recievers[i])
5656
assert.equal(qEvent.rationale, this.getRationale(this.recievers[i]))
5757
}
5858

tests/network-tests/src/graphql/queries/workingGroupsEvents.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fragment BudgetSpendingEventFields on BudgetSpendingEvent {
435435
group {
436436
name
437437
}
438-
receiver
438+
reciever
439439
amount
440440
rationale
441441
}

0 commit comments

Comments
 (0)