From e27454a53d4e3e017586703aa6ce03d2bc664bf4 Mon Sep 17 00:00:00 2001 From: sczembor <43810037+sczembor@users.noreply.github.com> Date: Mon, 25 Sep 2023 07:58:04 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Robert Zaremba --- contracts/registry/src/registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/registry/src/registry.rs b/contracts/registry/src/registry.rs index 3643525..9cee8d6 100644 --- a/contracts/registry/src/registry.rs +++ b/contracts/registry/src/registry.rs @@ -369,7 +369,7 @@ impl SBTRegistry for Contract { Some(MAX_REVOKE_PER_CALL), Some(true), ); - let tokens_by_owner_supply = self.sbt_supply_by_owner(owner.clone(), issuer.clone(), None); + let remaining_supply = self.sbt_supply_by_owner(owner.clone(), issuer.clone(), None); let tokens_len = tokens_by_owner[0].1.len(); if tokens_by_owner.is_empty() { return true;