From 9d220ab3b4f10575515b1ac0539171eb8e4e3b94 Mon Sep 17 00:00:00 2001 From: jtfirek Date: Thu, 19 Sep 2024 12:49:08 -0500 Subject: [PATCH] I-06 --- src/WithdrawRequestNFT.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WithdrawRequestNFT.sol b/src/WithdrawRequestNFT.sol index 8086ff30..7ad7f5a9 100644 --- a/src/WithdrawRequestNFT.sol +++ b/src/WithdrawRequestNFT.sol @@ -199,7 +199,7 @@ contract WithdrawRequestNFT is ERC721Upgradeable, UUPSUpgradeable, OwnableUpgrad /// `checkpointIndex` can be found using `findCheckpointIndex()` function /// @return uint256 the amount of ETH that can be claimed by the owner of the NFT function getClaimableAmount(uint32 requestId, uint32 checkpointIndex) public view returns (uint256) { - require(requestId <= lastFinalizedRequestId, "Request is not finalized"); + require(isFinalized(tokenId), "Request is not finalized"); require(requestId < nextRequestId, "Request does not exist"); require(ownerOf(requestId) != address(0), "Already claimed");