Created
January 10, 2019 12:42
-
-
Save anurag-arjun/2c076ea0b071639499ddae12bc6493cc to your computer and use it in GitHub Desktop.
Approve tokens to the Matic mainchain contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Approve token from your account to the Matic contracts | |
| matic | |
| .approveTokensForDeposit(token, amount, { | |
| from, | |
| onTransactionHash: () => { | |
| // action on Transaction success | |
| console.log("Deposit Tokens from Kovan/Ethereum to Matic - Transaction Approved.") | |
| }, | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment