Commit 828f0d41 authored by Hamdi Allam's avatar Hamdi Allam

setup the right next cursor

parent 6d3abbec
...@@ -190,7 +190,7 @@ l1_bridge_deposits.timestamp, cross_domain_message_hash, local_token_address, re ...@@ -190,7 +190,7 @@ l1_bridge_deposits.timestamp, cross_domain_message_hash, local_token_address, re
if len(deposits) > limit { if len(deposits) > limit {
hasNextPage = true hasNextPage = true
deposits = deposits[:limit] deposits = deposits[:limit]
nextCursor = deposits[limit].L1TransactionHash.String() nextCursor = deposits[limit].L1BridgeDeposit.TransactionSourceHash.String()
} }
response := &L1BridgeDepositsResponse{ response := &L1BridgeDepositsResponse{
...@@ -312,7 +312,7 @@ l2_bridge_withdrawals.timestamp, cross_domain_message_hash, local_token_address, ...@@ -312,7 +312,7 @@ l2_bridge_withdrawals.timestamp, cross_domain_message_hash, local_token_address,
if len(withdrawals) > limit { if len(withdrawals) > limit {
hasNextPage = true hasNextPage = true
withdrawals = withdrawals[:limit] withdrawals = withdrawals[:limit]
nextCursor = withdrawals[limit].L2TransactionHash.String() nextCursor = withdrawals[limit].L2BridgeWithdrawal.TransactionWithdrawalHash.String()
} }
if result.Error != nil { if result.Error != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment