This commit is contained in:
Nicholas Ward 2022-08-08 11:37:35 -07:00
parent bff3da1da1
commit 4624ce515b
3 changed files with 9 additions and 4 deletions

View File

@ -72,10 +72,10 @@ pub(crate) fn combined_kernel() -> Kernel {
#[cfg(test)]
mod tests {
use env_logger::{try_init_from_env, Env, DEFAULT_FILTER_ENV};
use std::str::FromStr;
use anyhow::Result;
use env_logger::{try_init_from_env, Env, DEFAULT_FILTER_ENV};
use ethereum_types::U256;
use log::debug;

View File

@ -5,8 +5,8 @@ mod exp;
mod mpt;
mod packing;
mod rlp;
mod transaction_parsing;
mod sha2;
mod transaction_parsing;
use std::str::FromStr;

View File

@ -34,8 +34,13 @@ fn test_sha2_store() -> Result<()> {
store_initial_stack.push(U256::from_str("0xdeadbeef").unwrap());
store_initial_stack.reverse();
dbg!(store_initial_stack.clone());
let after_storing = run(&kernel.code, sha2_store, store_initial_stack, &kernel.prover_inputs)?;
let after_storing = run(
&kernel.code,
sha2_store,
store_initial_stack,
&kernel.prover_inputs,
)?;
let stack_after_storing = after_storing.stack();
dbg!(stack_after_storing.clone());
let memory_after_storing = after_storing.memory;