nft-art-generator
nft-art-generator copied to clipboard
Some images generated are repeated
The code isn't checking for repeated variations correctly
I've created a PR with a fix
Would you consider writing a test for this to demonstrate the PR fix?
I've created a PR with uniqueness checking at the end.
In regards to this issue lines 75-80 should be changed to
if (takenFaces[face]) {
createImage();
} else {
const name = getRandomName();
console.log(name);
takenFaces[face] = face;
to not use face[takenFaces] = face
. Looks like this error is coming from incorrectly using an object instance to index an array...