File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ fn eval_allowance(
128
128
asset_name,
129
129
} ;
130
130
131
- let asset_id = eval ( & rest[ 1 ] , env, context) ?;
131
+ let asset_id = eval ( & rest[ 2 ] , env, context) ?;
132
132
133
133
Ok ( Allowance :: Nft ( NftAllowance { asset, asset_id } ) )
134
134
}
@@ -368,6 +368,7 @@ fn check_allowances(
368
368
}
369
369
370
370
// Check FT movements
371
+ // TODO: Handle "*" asset name
371
372
if let Some ( ft_moved) = assets. get_all_fungible_tokens ( owner) {
372
373
for ( asset, amount_moved) in ft_moved {
373
374
if let Some ( allowance_vec) = ft_allowances. get ( asset) {
@@ -387,6 +388,7 @@ fn check_allowances(
387
388
}
388
389
389
390
// Check NFT movements
391
+ // TODO: Handle "*" asset name
390
392
if let Some ( nft_moved) = assets. get_all_nonfungible_tokens ( owner) {
391
393
for ( asset, ids_moved) in nft_moved {
392
394
if let Some ( ( index, allowance_map) ) = nft_allowances. get ( asset) {
You can’t perform that action at this time.
0 commit comments