Skip to content

Commit 50397f9

Browse files
committed
fix: copy/paste error
1 parent 10c1629 commit 50397f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clarity/src/vm/functions/post_conditions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn eval_allowance(
128128
asset_name,
129129
};
130130

131-
let asset_id = eval(&rest[1], env, context)?;
131+
let asset_id = eval(&rest[2], env, context)?;
132132

133133
Ok(Allowance::Nft(NftAllowance { asset, asset_id }))
134134
}
@@ -368,6 +368,7 @@ fn check_allowances(
368368
}
369369

370370
// Check FT movements
371+
// TODO: Handle "*" asset name
371372
if let Some(ft_moved) = assets.get_all_fungible_tokens(owner) {
372373
for (asset, amount_moved) in ft_moved {
373374
if let Some(allowance_vec) = ft_allowances.get(asset) {
@@ -387,6 +388,7 @@ fn check_allowances(
387388
}
388389

389390
// Check NFT movements
391+
// TODO: Handle "*" asset name
390392
if let Some(nft_moved) = assets.get_all_nonfungible_tokens(owner) {
391393
for (asset, ids_moved) in nft_moved {
392394
if let Some((index, allowance_map)) = nft_allowances.get(asset) {

0 commit comments

Comments
 (0)