From 669d67b1fdb32d50f5db587a2824ac40f6ed9056 Mon Sep 17 00:00:00 2001 From: veeso Date: Mon, 9 Dec 2024 17:55:39 +0100 Subject: [PATCH] fix: total supply --- ethereum/contracts/Deferred.sol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethereum/contracts/Deferred.sol b/ethereum/contracts/Deferred.sol index e7dfcce..42eb239 100644 --- a/ethereum/contracts/Deferred.sol +++ b/ethereum/contracts/Deferred.sol @@ -336,6 +336,12 @@ contract Deferred is ERC721, Ownable { return tokensBoughtByBuyer[_contractId]; } + /// @notice Get the total supply of tokens + /// @return totalSupply The total supply of tokens + function totalSupply() public view returns (uint256) { + return nextTokenId; + } + // ERC721 overrides /// @notice Get balance of a token owner