--- a/pallets/nonfungible/src/erc.rs
+++ b/pallets/nonfungible/src/erc.rs
@@ -520,8 +520,8 @@
/// @param tokenId The NFT to find the approved address for
/// @return The approved address for this NFT, or the zero address if there is none
fn get_approved(&self, token_id: U256) -> Result
{
- let token = token_id.try_into()?;
- let operator = >::get_allowance(self, token).map_err(dispatch_to_evm::)?;
+ let token_id = token_id.try_into()?;
+ let operator = >::get_allowance(self, token_id).map_err(dispatch_to_evm::)?;
Ok(if let Some(operator) = operator {
*operator.as_eth()
} else {
--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -1085,13 +1085,13 @@
pub fn get_allowance(
collection: &NonfungibleHandle,
- token: TokenId,
+ token_id: TokenId,
) -> Result