Skip to content

Commit

Permalink
Fix uint conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Dec 3, 2024
1 parent cf5ad6a commit 3f247d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evm_arithmetization/src/witness/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ pub(crate) fn generate_poseidon_general<F: RichField, T: Transition<F>>(
state: &mut T,
mut row: CpuColumnsView<F>,
) -> Result<(), ProgramError> {
use alloy_compat::Compat;
use smt_trie::{code::poseidon_hash_padded_byte_vec, utils::hashout2u};

use crate::{
Expand Down Expand Up @@ -250,7 +251,7 @@ pub(crate) fn generate_poseidon_general<F: RichField, T: Transition<F>>(

let hash = hashout2u(poseidon_hash_padded_byte_vec(input.clone()));

push_no_write(generation_state, hash.into());
push_no_write(generation_state, hash.compat());

state.push_poseidon(poseidon_op);

Expand Down

0 comments on commit 3f247d6

Please sign in to comment.