Skip to content

Commit ed8a4c2

Browse files
committed
comment
1 parent 0ca6e34 commit ed8a4c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

receipts/fetch.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ import (
1212
sequence "github.com/0xsequence/go-sequence"
1313
)
1414

15-
const MaxFilterBlockRange = 10000
15+
const MaxFilterBlockRange = 10_000
1616

1717
// FetchReceipts looks up the transaction that emitted Call* events for the given
1818
// digest and returns all decoded Sequence receipts along with the native receipt.
19+
//
20+
// The `opHash` is also known as the "MetaTxnID"
21+
//
22+
// NOTE: toBlock can also be nil, in which case the latest block is used.
1923
func FetchReceipts(ctx context.Context, opHash common.Hash, provider *ethrpc.Provider, fromBlock, toBlock *big.Int) (Receipts, *types.Receipt, error) {
2024
if provider == nil {
2125
return Receipts{}, nil, fmt.Errorf("no provider")

0 commit comments

Comments
 (0)