diff --git a/mocking/src/world/infos.rs b/mocking/src/world/infos.rs index 3a98961..c367ad4 100644 --- a/mocking/src/world/infos.rs +++ b/mocking/src/world/infos.rs @@ -135,8 +135,9 @@ impl ScenarioWorldInfos { let opt_attributes_expr = balance.opt_attributes .as_deref() .map(|e| { - base64::engine::general_purpose::STANDARD.decode(e).unwrap() - }); + base64::engine::general_purpose::STANDARD.decode(e) + }) + .and_then(|res| res.ok()); account = account.esdt_nft_balance(token_identifier, balance.nonce, &balance.amount, opt_attributes_expr); }