Releases: gitcoinco/gitcoin-erc721
Add function to setTokenURI
What's New
We can now (as a contract owner), use the setTokenURI()
function to set the token metadata after it has been minted.
Initial Audit Complete
What's new
Implemented audit recommendations made by @decanus. Notes are here:
https://hackmd.io/s/H1jzwl0iX
Updates include:
- Set dummy kudos in constructor function instead of
mint()
function - Remove
payable
modifier from functions that don't require it - Return ETH to
msg.sender
after paying the fees to the token owner and contract owner. - Add new test to make sure that extra ETH is being returned to
msg.sender
when running theclone()
function.
Bug Fix Release
What's new
- Fixed an issue where if you tried to run
getLatestId
before any data was pushed to the kudos array, an underflow would occur.
Feature release
Whats New
This version adds a couple new functions, most notably, getLatestId
and setMintable
. Also there is a new public variable name isMintable
.
getLatestId
. This is the new way to find out the latest kudos id. This is the preferred method overtotalSupply()
, becausetotalSupply()
will not output the correct kudos id once we start burning tokens.setMintable
. This istrue
by default. If its set tofalse
, it disables the ability to mint or clone and new kudos. Setting this allows us to "deprecate" contracts, by not letting anyone mint new kudos.
Initial Release
Whats New
First release of the Kudos.sol contract to the mainnet. The deploy didn't work using truffle migrate
, had to release using the truffle console:
truffle console --network live
In the console,
var tx = Kudos.new({gasPrice: 3 * 10**9, nonce: 4 })
The contract is deployed to address 0x56c72cda0b04fc39a25d0b6a64fa258fad46d664
on the mainnet.
Known bugs
In this version, there is no reliable way to find the latest kudos id. I was using totalSupply()
but this is not reliable when you start burning tokens. Need to upgrade to the newest version to fix this.