Skip to content
Snippets Groups Projects
Commit ebdc3fcf authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#125): debug(e2): explicitely say that issuer does not exist

parent 1d254dba
No related branches found
No related tags found
Loading
...@@ -29,12 +29,12 @@ pub async fn certify(client: &Client, from: AccountKeyring, to: AccountKeyring) ...@@ -29,12 +29,12 @@ pub async fn certify(client: &Client, from: AccountKeyring, to: AccountKeyring)
.storage() .storage()
.fetch(&gdev::storage().identity().identity_index_of(&from), None) .fetch(&gdev::storage().identity().identity_index_of(&from), None)
.await? .await?
.unwrap(); .expect(format!("{} issuer must exist", from.to_string()).as_str());
let receiver_index = client let receiver_index = client
.storage() .storage()
.fetch(&gdev::storage().identity().identity_index_of(&to), None) .fetch(&gdev::storage().identity().identity_index_of(&to), None)
.await? .await?
.unwrap(); .expect(format!("{} issuer must exist", from.to_string()).as_str());
let _events = create_block_with_extrinsic( let _events = create_block_with_extrinsic(
client, client,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment