Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Oct 20, 2024
1 parent b4ff27e commit b8bd86c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/src/utility/support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,7 @@ pub fn create_funded_dummy_account(
builder: &mut WasmTestBuilder<InMemoryGlobalState>,
account_string: Option<[u8; 32]>,
) -> AccountHash {
let (_, account_public_key) =
create_dummy_key_pair(if let Some(account_string) = account_string {
account_string
} else {
[7u8; 32]
});
let (_, account_public_key) = create_dummy_key_pair(account_string.unwrap_or([7u8; 32]));
let account = account_public_key.to_account_hash();
fund_account(builder, account);
account
Expand Down

0 comments on commit b8bd86c

Please sign in to comment.