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
191191 let id = paymentAddress . toHexString ( )
192192 let paymentSource = PaymentSource . load ( id )
193193 if ( paymentSource == null ) {
194- let paymentSource = new PaymentSource ( id )
194+ paymentSource = new PaymentSource ( id )
195195 paymentSource . graphNetwork = "1"
196196 paymentSource . totalQueryFees = BigInt . fromI32 ( 0 )
197197 paymentSource . totalIndexerQueryFeesCollected = BigInt . fromI32 ( 0 )
@@ -211,7 +211,7 @@ export function createOrLoadIndexerQueryFeePaymentAggregation(paymentAddress: By
211211 let id = paymentAddress . toHexString ( ) . concat ( "-" ) . concat ( indexerAddress . toHexString ( ) )
212212 let aggregation = IndexerQueryFeePaymentAggregation . load ( id )
213213 if ( aggregation == null ) {
214- let aggregation = new IndexerQueryFeePaymentAggregation ( id )
214+ aggregation = new IndexerQueryFeePaymentAggregation ( id )
215215 aggregation . indexer = indexerAddress . toHexString ( )
216216 aggregation . paymentSource = paymentAddress . toHexString ( )
217217 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 {
397397 let subgraphDeploymentID = event . params . subgraphDeploymentID . toHexString ( )
398398 let indexerID = event . params . indexer . toHexString ( )
399399 let allocationID = event . params . allocationID . toHexString ( )
400- let paymentAddress = event . transaction . from
400+ let paymentAddress = event . params . from
401401
402402 // update indexer
403403 let indexer = Indexer . load ( indexerID ) !
@@ -705,7 +705,7 @@ export function handleRebateCollected(event: RebateCollected): void {
705705 let subgraphDeploymentID = event . params . subgraphDeploymentID . toHexString ( )
706706 let indexerID = event . params . indexer . toHexString ( )
707707 let allocationID = event . params . allocationID . toHexString ( )
708- let paymentAddress = event . transaction . from
708+ let paymentAddress = event . params . assetHolder
709709
710710 // update indexer
711711 let indexer = Indexer . load ( indexerID ) !
You can’t perform that action at this time.
0 commit comments