-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
William Cory
authored and
William Cory
committed
Jul 15, 2024
1 parent
08c2b43
commit 97fabad
Showing
7 changed files
with
195 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
docs/src/content/docs/reference/@tevm/blockchain/functions/createChain.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
docs/src/content/docs/reference/@tevm/blockchain/functions/getBlockFromRpc.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
docs/src/content/docs/reference/@tevm/blockchain/type-aliases/Chain.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
packages/blockchain/src/utils/__snapshots__/getBlockFromRpc.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Bun Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`getBlockFromRpc should handle invalid block tag 1`] = `[UnknownBlockError: No block found | ||
Docs: https://tevm.sh/reference/tevm/errors/classes/unknownblockerror/ | ||
Version: 1.1.0.next-73]`; | ||
|
||
exports[`getBlockFromRpc should handle non-existing block number 1`] = `[UnknownBlockError: No block found | ||
Docs: https://tevm.sh/reference/tevm/errors/classes/unknownblockerror/ | ||
Version: 1.1.0.next-73]`; | ||
|
||
exports[`getBlockFromRpc should handle non-existing block hash 1`] = `[UnknownBlockError: No block found | ||
Docs: https://tevm.sh/reference/tevm/errors/classes/unknownblockerror/ | ||
Version: 1.1.0.next-73]`; | ||
|
||
exports[`getBlockFromRpc should handle Optimism deposit transactions filtering 1`] = ` | ||
[ | ||
[ | ||
"Warning: Optimism deposit transactions (type 0x7e) are currently not supported and will be filtered out of blocks until support is added | ||
filtering out tx 0x284db6dad8681a502b229691d72e890be7f8533cbf34f9d88fbe84db0ed1ff35. | ||
Note: The block hash will be different because of the execluded txs" | ||
, | ||
], | ||
[ | ||
"Warning: Optimism deposit transactions (type 0x7e) are currently not supported and will be filtered out of blocks until support is added | ||
filtering out tx 0x284db6dad8681a502b229691d72e890be7f8533cbf34f9d88fbe84db0ed1ff35. | ||
Note: The block hash will be different because of the execluded txs" | ||
, | ||
], | ||
[ | ||
"Warning: Optimism deposit transactions (type 0x7e) are currently not supported and will be filtered out of blocks until support is added | ||
filtering out tx 0x284db6dad8681a502b229691d72e890be7f8533cbf34f9d88fbe84db0ed1ff35. | ||
Note: The block hash will be different because of the execluded txs" | ||
, | ||
], | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters