Skip to content

Commit 80827d0

Browse files
committed
comment
1 parent ed8a4c2 commit 80827d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

receipts/fetch.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ const MaxFilterBlockRange = 10_000
2020
// The `opHash` is also known as the "MetaTxnID"
2121
//
2222
// NOTE: toBlock can also be nil, in which case the latest block is used.
23+
//
24+
// Finally, please note that this method will not find meta-transactions if there is a
25+
// native transaction which fails. In that case, the Call* events are not emitted and
26+
// thus cannot be found. In such cases, you will need to look up the native transaction
27+
// receipt directly. However, this is not to be confused with where a "Call" inside
28+
// of the native transaction fails, but the native transaction itself succeeds which
29+
// is more common and works fine.
2330
func FetchReceipts(ctx context.Context, opHash common.Hash, provider *ethrpc.Provider, fromBlock, toBlock *big.Int) (Receipts, *types.Receipt, error) {
2431
if provider == nil {
2532
return Receipts{}, nil, fmt.Errorf("no provider")

0 commit comments

Comments
 (0)