Skip to content

Commit

Permalink
docs: rm some tracing todos + docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Aug 3, 2023
1 parent 76a6c92 commit 8d0aa64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/revm/revm-inspectors/src/tracing/js/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
5 changes: 3 additions & 2 deletions crates/revm/revm-inspectors/src/tracing/js/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
Expand 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(())
}

Expand Down

0 comments on commit 8d0aa64

Please sign in to comment.