docs: rm some tracing todos + docs

This commit is contained in:
Matthias Seitz
2023-08-03 16:09:39 +02:00
parent 76a6c92cb3
commit 8d0aa64ab8
2 changed files with 3 additions and 3 deletions

View File

@@ -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>,

View File

@@ -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(())
}