Skip to content

Commit

Permalink
Merge pull request #93
Browse files Browse the repository at this point in the history
Process no longer crashes when the esdt attributes are not from the sdk
  • Loading branch information
gfusee authored Oct 1, 2024
2 parents cd5c6d0 + e7f6c87 commit cb37d6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mocking/src/world/infos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cb37d6d

Please sign in to comment.