January 2020
Intermediate to advanced
530 pages
11h 11m
English
We need to map the contract ABI and provide a suitable contract interface that our app can use for invoking the token smart contracts and calling the contract methods. Let's see how we can accomplish this:
//all20.jsimport MoolahCoin from './MoolahCoin';const Tokens20 = [ MoolahCoin];export default Tokens20;//all721.jsimport Condos from './Condos';const Tokens721 = [ Condos];export default Tokens721;
Currently, these files map our MoolahCoin token (ERC20) and Condos token (ERC721). As you add more tokens to the wallet, you need to add them ...
Read now
Unlock full access