Skip to content

Commit

Permalink
Fix bug (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon authored Oct 15, 2024
1 parent aff451c commit 1598bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,8 @@ pub(crate) mod handler {
state: *mut [u32; 8],
block: &[u32; 16],
) {
let result = ptr.sha256_process_block(unsafe { &mut *state }, block, gas);
let state_ref = unsafe { state.as_mut().unwrap() };
let result = ptr.sha256_process_block(state_ref, block, gas);

*result_ptr = match result {
Ok(x) => SyscallResultAbi {
Expand Down

0 comments on commit 1598bad

Please sign in to comment.