From d2bbba60ba3353dcd4eca237e73948e18040cc70 Mon Sep 17 00:00:00 2001 From: crStiv Date: Wed, 29 Jan 2025 02:21:10 +0100 Subject: [PATCH] Update IdRegistry.sol --- src/IdRegistry.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IdRegistry.sol b/src/IdRegistry.sol index 259441ff..b2413f7f 100644 --- a/src/IdRegistry.sol +++ b/src/IdRegistry.sol @@ -241,9 +241,9 @@ contract IdRegistry is IIdRegistry, Migration, Signatures, EIP712, Nonces { * @dev Transfer the fid to another address without checking invariants. */ function _unsafeTransfer(uint256 id, address from, address to) internal whenNotPaused { + delete idOf[from]; idOf[to] = id; custodyOf[id] = to; - delete idOf[from]; emit Transfer(from, to, id); }