Closed thedevyansh closed 2 years ago
@thedevyansh would love to see some unit tests so we can verify the behavior. You could look at the existing tests for the nft module and probably copy the test code for similar findbymint stuff from there to get you started.
This looks good to me @thedevyansh. We will probably refactor the tests a bit to use the new mocked network layer but what you have done here is fine for your task.
oh @thedevyansh please target the develop
branch for merge instead of main. Thanks!
Description
Work Completed
findByMint(mint, callback)
, which will return the on-chain metadata of fungible token for a given mint address. This API is a part of thetokenMetadata
module.Usage
Testing