Skip to content

Commit

Permalink
Merge branch 'master' into ag-libsecp256k1-remove
Browse files Browse the repository at this point in the history
  • Loading branch information
agryaznov committed May 11, 2022
2 parents 67c373b + 32e0261 commit b0237bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/call/execution_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl ExecutionInput<EmptyArgumentList> {
}
}

impl<'a, Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>> {
impl<Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>> {
/// Pushes an argument to the execution input.
#[inline]
pub fn push_arg<T>(self, arg: T) -> ExecutionInput<ArgsList<T, ArgsList<Head, Rest>>>
Expand Down Expand Up @@ -167,7 +167,7 @@ impl scale::Encode for EmptyArgumentList {
fn encode_to<O: scale::Output + ?Sized>(&self, _output: &mut O) {}
}

impl<'a, Head, Rest> scale::Encode for ArgumentList<Argument<Head>, Rest>
impl<Head, Rest> scale::Encode for ArgumentList<Argument<Head>, Rest>
where
Head: scale::Encode,
Rest: scale::Encode,
Expand Down
16 changes: 8 additions & 8 deletions crates/env/src/engine/on_chain/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ mod sys {
output_len_ptr: Ptr32Mut<u32>,
) -> ReturnCode;

pub fn seal_contains_storage(key_ptr: Ptr32<[u8]>) -> ReturnCode;

pub fn seal_clear_storage(key_ptr: Ptr32<[u8]>);

pub fn seal_call_chain_extension(
Expand Down Expand Up @@ -359,6 +361,12 @@ mod sys {
output_ptr: Ptr32Mut<[u8]>,
output_len_ptr: Ptr32Mut<u32>,
) -> ReturnCode;

pub fn seal_set_storage(
key_ptr: Ptr32<[u8]>,
value_ptr: Ptr32<[u8]>,
value_len: u32,
) -> ReturnCode;
}

#[link(wasm_import_module = "__unstable__")]
Expand All @@ -375,14 +383,6 @@ mod sys {
public_key_ptr: Ptr32<[u8]>,
output_ptr: Ptr32Mut<[u8]>,
) -> ReturnCode;

pub fn seal_contains_storage(key_ptr: Ptr32<[u8]>) -> ReturnCode;

pub fn seal_set_storage(
key_ptr: Ptr32<[u8]>,
value_ptr: Ptr32<[u8]>,
value_len: u32,
) -> ReturnCode;
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/storage/src/collections/vec/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fn spread_layout_clear_works() {
fn set_works() {
ink_env::test::run_test::<ink_env::DefaultEnvironment, _>(|_| {
let mut vec = vec_from_slice(&[b'a', b'b', b'c', b'd']);
let _ = vec.set(0, b'x').unwrap();
vec.set(0, b'x').unwrap();
let expected = vec_from_slice(&[b'x', b'b', b'c', b'd']);
assert_eq!(vec, expected);
Ok(())
Expand Down

0 comments on commit b0237bf

Please sign in to comment.