Refactored frontend

This commit is contained in:
Игорь Соболев 2019-07-01 16:52:18 +03:00
parent c68da0811f
commit 349849b2a9

View File

@ -430,7 +430,6 @@ $('button').click(function () {
function challengeEthereum(id, data) {
console.log('Challenging task N ' + data + ' on Ethereum!');
contractInstance.challenge.sendTransaction(data, function (err, txHash) {
$('#challenge-' + id).text('See tx on Etherscan!');
$('#challenge-' + id).attr("onclick", "window.open('https://rinkeby.etherscan.io/tx/" + txHash + "')");
$('#challenge-' + id).text('See tx on Etherscan!').attr("onclick", "window.open('https://rinkeby.etherscan.io/tx/" + txHash + "')");
});
}