Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
SkymanOne committed Aug 8, 2023
commit 4a954ae5296c3b0f5886ddb67d4626c9322e608a
6 changes: 4 additions & 2 deletions integration-tests/static-buffer/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ pub mod static_buffer {
type E2EResult<T> = std::result::Result<T, Box<dyn std::error::Error>>;

#[ink_e2e::test]
async fn e2e_run_out_of_buffer_memory<Client: E2EBackend>(mut client: Client) -> E2EResult<()> {
async fn e2e_run_out_of_buffer_memory<Client: E2EBackend>(
mut client: Client,
) -> E2EResult<()> {
// given
let constructor = StaticBufferRef::new(false);
let contract = client
Expand All @@ -57,7 +59,7 @@ pub mod static_buffer {
.expect("instantiate failed");
let call = contract.call::<StaticBuffer>();

//when
// when
let get = call.get_caller();
// then panics if `STATIC_BUFFER_SIZE` is less than 32 bytes.
let res = client.call_dry_run(&ink_e2e::bob(), &get, 0, None).await;
Expand Down