I get the code for the erc20 token and deploy it. It runs as expected. Then I create a front end for the coding. In the front end, I get the total supply, name, decimal output in the front end. I get the output for the transfer function in an erc20 in the command line, but it doesn’t work in the front end. I listed the code below. Can anyone help me?
Front end code:
It doesn’t work in the front end. But in the command line, it works.