Skip to content

Commit

Permalink
test: expand messages
Browse files Browse the repository at this point in the history
Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
  • Loading branch information
0x009922 committed May 23, 2024
1 parent 09995af commit 61562c1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ fn visit_set_parameter(executor: &mut Executor, _authority: &AccountId, isi: &Se
}

fn visit_register_domain(executor: &mut Executor, _authority: &AccountId, isi: &Register<Domain>) {
// FIXME: unwrap is ok here?
let required_prefix = FindAllParameters
.execute()
.unwrap()
.expect("Iroha should not fail to provide parameters, it is a bug")
.into_iter()
.map(Result::unwrap)
.map(|result| {
result.expect("each parameter retrieval should not fail as well, it is a bug")
})
.find_map(|parameter| EnforceDomainPrefix::try_from_object(&parameter).ok());

if let Some(EnforceDomainPrefix { prefix }) = required_prefix {
Expand Down

0 comments on commit 61562c1

Please sign in to comment.