From c72c75e86dc0de200e761dda45f5323587dc4d65 Mon Sep 17 00:00:00 2001 From: jaensen <4954577+jaensen@users.noreply.github.com> Date: Wed, 7 Feb 2024 23:26:09 +0100 Subject: [PATCH] fix: inverted v1 token stopped check --- src/hub/Hub.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hub/Hub.sol b/src/hub/Hub.sol index 49822dd..dabb8a6 100644 --- a/src/hub/Hub.sol +++ b/src/hub/Hub.sol @@ -210,7 +210,7 @@ contract Hub is Circles { function registerHuman(bytes32 _cidV0Digest) external duringBootstrap { // only available for v1 users with stopped v1 mint, for initial bootstrap period address v1CirclesStatus = _registerHuman(msg.sender); - require(v1CirclesStatus != CIRCLES_STOPPED_V1, "Avatar must have stopped v1 Circles contract."); + require(v1CirclesStatus == CIRCLES_STOPPED_V1, "Avatar must have stopped v1 Circles contract."); // store the IPFS CIDv0 digest for the avatar metadata tokenIdToCidV0Digest[_toTokenId(msg.sender)] = _cidV0Digest;