diff --git a/contracts/cw721-base/src/execute.rs b/contracts/cw721-base/src/execute.rs index f48b9dcc3..5ee529a02 100644 --- a/contracts/cw721-base/src/execute.rs +++ b/contracts/cw721-base/src/execute.rs @@ -314,11 +314,7 @@ where // update the approval list (remove any for the same spender before adding) let spender_addr = deps.api.addr_validate(spender)?; - token.approvals = token - .approvals - .into_iter() - .filter(|apr| apr.spender != spender_addr) - .collect(); + token.approvals.retain(|apr| apr.spender != spender_addr); // only difference between approve and revoke if add {