mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05:00
docs: rm some tracing todos + docs
This commit is contained in:
@@ -491,7 +491,6 @@ pub(crate) struct EvmContext {
|
||||
pub(crate) output: Bytes,
|
||||
/// Number, block number
|
||||
pub(crate) time: String,
|
||||
// TODO more fields
|
||||
pub(crate) block_hash: Option<H256>,
|
||||
pub(crate) tx_index: Option<usize>,
|
||||
pub(crate) tx_hash: Option<H256>,
|
||||
|
||||
@@ -16,6 +16,9 @@ use std::collections::HashSet;
|
||||
pub(crate) const BIG_INT_JS: &str = include_str!("bigint.js");
|
||||
|
||||
/// Registers all the builtin functions and global bigint property
|
||||
///
|
||||
/// Note: this does not register the `isPrecompiled` builtin, as this requires the precompile
|
||||
/// addresses, see [PrecompileList::register_callable].
|
||||
pub(crate) fn register_builtins(ctx: &mut Context<'_>) -> JsResult<()> {
|
||||
let big_int = ctx.eval(Source::from_bytes(BIG_INT_JS.as_bytes()))?;
|
||||
ctx.register_global_property("bigint", big_int, Attribute::all())?;
|
||||
@@ -25,8 +28,6 @@ pub(crate) fn register_builtins(ctx: &mut Context<'_>) -> JsResult<()> {
|
||||
ctx.register_global_callable("toContract", 2, NativeFunction::from_fn_ptr(to_contract))?;
|
||||
ctx.register_global_callable("toContract2", 3, NativeFunction::from_fn_ptr(to_contract2))?;
|
||||
|
||||
// TODO: isPrecompiled slice
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user