Skip to content

Commit

Permalink
fix: transaction receipt logs should not be pending (#1330)
Browse files Browse the repository at this point in the history
* fix: transaction receipt logs should not be pending

* Create rude-squids-arrive.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
frolic and jxom authored Oct 10, 2023
1 parent 33c4c24 commit 05a3784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rude-squids-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Fixed `TransactionReceipt['logs']` type.
2 changes: 1 addition & 1 deletion src/types/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type TransactionReceipt<
/** Gas used by this transaction */
gasUsed: TQuantity
/** List of log objects generated by this transaction */
logs: Log<TQuantity, TIndex>[]
logs: Log<TQuantity, TIndex, false>[]
/** Logs bloom filter */
logsBloom: Hex
/** `success` if this transaction was successful or `reverted` if it failed */
Expand Down

1 comment on commit 05a3784

@vercel
Copy link

@vercel vercel bot commented on 05a3784 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.