0

https://gist.github.com/shobhitic/44f1d88c58b8c80d431e156654167d0d

I am super new to testing so I am not entirely sure how to frame this question but what are the tests that should be done on a smart contract like this? Are there any certain specific parameters that needs to be focused on or any specific testing libraries that I should use?

1 Answer 1

0

Usually, in this kind of contract you would try to mint a token, then make sure that the ID is correct, and make sure that the balance of the receiver has increased of 1. Then you would test the withdraw() function.

Depending on the smart contract framework you've chosen, you may also verify that the test coverage is enough to ensure that the code is fully tested and that the contract behaves as expected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.