Skip to content

Commit

Permalink
Merge pull request #94
Browse files Browse the repository at this point in the history
Fixed esdt attributes from world infos
  • Loading branch information
gfusee authored Oct 2, 2024
2 parents a167bd3 + 061b02f commit 2a14da8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2,710 deletions.
9 changes: 1 addition & 8 deletions mocking/src/world/infos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,7 @@ impl ScenarioWorldInfos {
if balance.nonce == 0 {
account = account.esdt_balance(token_identifier, &balance.amount)
} else {
let opt_attributes_expr = balance.opt_attributes
.as_deref()
.map(|e| {
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);
account = account.esdt_nft_balance(token_identifier, balance.nonce, &balance.amount, balance.opt_attributes.clone());
}
}
}
Expand Down
Loading

0 comments on commit 2a14da8

Please sign in to comment.