Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Buenas tardes,
Se compeltan los sigueintes retos:
Reto #1 [OK]: Investigar que son los Events en Solidity. Luego, debes implementar un evento que se llame eventNewPokemon, el cual se disparará cada vez que un nuevo Pokemon es creado. Lo que emitirá el evento será el Pokemon que se creó.
Reto #2 [OK]:
Reto #3 [OK]:
Los Pokemons han evolucionado, ahora tienen una lista de habilidades (Habilities). Es decir, un Pokemon puede tener 1 ó muchas habilidades, cada habilidad tiene el siguiente formato:
Reto #4:
Los Pokemons pueden pertenecer a más de un tipo (Type), por ejemplo: Bulbasaur es de tipo Grass y Poison. Proponga una solución e impleméntela.
Los Pokemons tienen debilidades (Weaknesses) las cuales pueden ser otros tipos de pokemones. Por ejemplo, Bulbasaur es débil contra pokemones de tipo Fire, Flying, Ice, Psychic. Proponga una solución e impleméntela.
NOTA: Para desplegar el contrato creé un constructor público para que se ingrese un arreglo de typos de pokemon (no pude hacerlo directamente porque me generaba errrores, entonces lo hice de esa forma, si hay alguna mejor, agradezco el tip).
El arreglo _types : ["Grass","Poison","Fire","Flying","Water","Bug","Normal","Ground","Electric","Fairy","Fighting","Rock","Steel","Ice","Ghost","Dragon","Psychic"]
en los campos del contrato se puede enviar la siguiente información:
_name: Bulbasaur
_id: 001
_abilityName: ["Overgrass"]
_abilityDescription:["Description Overgrass pokemon type"]
_iDtypes: [0,1]
_weaknesses: ["Fire","Psychic","Flying","Ice"]
Quedo super atento a recomendaciones.