Last active
May 9, 2018 22:52
Star
You must be signed in to star a gist
API
This file contains 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
// Создает новый запрос на минтинг WhiteCoin | |
// amount - количество токенов для создания | |
// address - адрес клиента, на который нужно отправить WhiteCoi | |
mintingRequest: function (amount, address) { | |
WhiteCoin.mintingRequest(amount, address, (error, result) => { | |
// TODO: Добавить сюда обработку результата | |
WhiteCoin.NewMintingRequest().watch((err, response) => { | |
console.log(response.args.amount); // Сумма для эмиссии | |
console.log(response.args.id); // Номер запроса, который мы подставляем в mintWhitecoin() | |
console.log(response.args.to); // Адрес клиента | |
}) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment