From f33497875e60b5f055f9eed05e080bfab92fb7e6 Mon Sep 17 00:00:00 2001 From: enitrat Date: Thu, 5 Sep 2024 14:11:01 +0200 Subject: [PATCH] fix test p256 verify staticcall --- crates/evm/src/precompiles/p256verify.cairo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/evm/src/precompiles/p256verify.cairo b/crates/evm/src/precompiles/p256verify.cairo index bc7ae09be..829e459f5 100644 --- a/crates/evm/src/precompiles/p256verify.cairo +++ b/crates/evm/src/precompiles/p256verify.cairo @@ -174,7 +174,7 @@ mod tests { .memory .store(0x7618b065f9832de4ca6ca971a7a1adc826d0f7c00181a5fb2ddf79ae00b4e10e, 0x80); // y - vm.stack.push(0x01).unwrap(); // retSize + vm.stack.push(0x20).unwrap(); // retSize vm.stack.push(0xa0).unwrap(); // retOffset vm.stack.push(0xa0).unwrap(); // argsSize vm.stack.push(0x0).unwrap(); // argsOffset @@ -185,9 +185,9 @@ mod tests { vm.exec_staticcall().unwrap(); let mut result = Default::default(); - vm.memory.load_n(0x1, ref result, 0xa0); + vm.memory.load_n(0x20, ref result, 0xa0); - assert_eq!(result, array![0x01]); + assert_eq!(result.span(), super::ONE_32_BYTES.span()); } #[test]