File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export function createOrLoadPaymentSource(paymentAddress: Bytes): PaymentSource
191
191
let id = paymentAddress . toHexString ( )
192
192
let paymentSource = PaymentSource . load ( id )
193
193
if ( paymentSource == null ) {
194
- let paymentSource = new PaymentSource ( id )
194
+ paymentSource = new PaymentSource ( id )
195
195
paymentSource . graphNetwork = "1"
196
196
paymentSource . totalQueryFees = BigInt . fromI32 ( 0 )
197
197
paymentSource . totalIndexerQueryFeesCollected = BigInt . fromI32 ( 0 )
@@ -211,7 +211,7 @@ export function createOrLoadIndexerQueryFeePaymentAggregation(paymentAddress: By
211
211
let id = paymentAddress . toHexString ( ) . concat ( "-" ) . concat ( indexerAddress . toHexString ( ) )
212
212
let aggregation = IndexerQueryFeePaymentAggregation . load ( id )
213
213
if ( aggregation == null ) {
214
- let aggregation = new IndexerQueryFeePaymentAggregation ( id )
214
+ aggregation = new IndexerQueryFeePaymentAggregation ( id )
215
215
aggregation . indexer = indexerAddress . toHexString ( )
216
216
aggregation . paymentSource = paymentAddress . toHexString ( )
217
217
aggregation . queryFeesCollected = BigInt . fromI32 ( 0 )
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ export function handleAllocationCollected(event: AllocationCollected): void {
397
397
let subgraphDeploymentID = event . params . subgraphDeploymentID . toHexString ( )
398
398
let indexerID = event . params . indexer . toHexString ( )
399
399
let allocationID = event . params . allocationID . toHexString ( )
400
- let paymentAddress = event . transaction . from
400
+ let paymentAddress = event . params . from
401
401
402
402
// update indexer
403
403
let indexer = Indexer . load ( indexerID ) !
@@ -705,7 +705,7 @@ export function handleRebateCollected(event: RebateCollected): void {
705
705
let subgraphDeploymentID = event . params . subgraphDeploymentID . toHexString ( )
706
706
let indexerID = event . params . indexer . toHexString ( )
707
707
let allocationID = event . params . allocationID . toHexString ( )
708
- let paymentAddress = event . transaction . from
708
+ let paymentAddress = event . params . assetHolder
709
709
710
710
// update indexer
711
711
let indexer = Indexer . load ( indexerID ) !
You can’t perform that action at this time.
0 commit comments