Bug Fixes for backend

Job ID: 31571015

Budget: $30 – $250 USD

This backend used "ethers". "ejs", "express".
Here is 3 bugs to fix:
1. TypeError: contract.balanceOf is not a function
2. TypeError:totalSupply is not a function
3. Although transfer successful, and data saved in mongo, success message not printed in the console.
Please see attachments with code examples
Related categories: JavaScript AngularJS React.js Typescript Ethereum