tokenzendr-contract
tokenzendr-contract copied to clipboard
addNewToken not working
Hi ,
I have created tokens and tests were passed in successfullly
I deployed the smart contract in local Ganache and I called the addNewToken function using web3 js it returns true.
But I tried get the added token address it returns 0x000.
tokenZandR.addNewToken.call("BEAR","0x0f78b59f855c346e481865001dbad0b635543312",(err,succ) =>{ if(err){ console.log(err) }else{ tokenZandR.tokens.call('BEAR',(err,tokenAddress) =>{ if(err){ console.log(err) } console.log(tokenAddress) }) console.log(succ) } })
Please help me and thanks in advance
It is not working on my side too.
@nsr-py Can you look into this issue
@slim12kg I surely will, but it might take a while, I am still a rookie😅
I made a pull request where I solved this #4