mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-21 01:56:17 +00:00
1 parent
2ea10d0c3e
commit
532721f3be
11 files changed
+81
-122
No files matched your search
@@ -1,5 +1,5 @@
|
||||
use alloy_primitives::{keccak256, Address, FixedBytes, B256, I256, U256};
|
||||
use alloy_sol_types::{sol, SolCall};
|
||||
use alloy_sol_types::{sol, SolCall, SolValue};
|
||||
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
|
||||
use sha1::Digest;
|
||||
|
||||
@@ -522,3 +522,15 @@ fn ext_code_size() {
|
||||
let expected = U256::ZERO;
|
||||
assert_eq!(received, expected);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn mcopy() {
|
||||
let expected = vec![1, 2, 3];
|
||||
|
||||
let (_, output) = assert_success(&Contract::memcpy(expected.clone()), false);
|
||||
|
||||
let received = alloy_primitives::Bytes::abi_decode(&output.data, true)
|
||||
.unwrap()
|
||||
.to_vec();
|
||||
assert_eq!(expected, received);
|
||||
}
|
||||
Reference in new issue
Block a user