mirror of
https://github.com/fluencelabs/lazy-snark
synced 2025-04-24 22:42:14 +00:00
Refactored frontend #2
This commit is contained in:
parent
349849b2a9
commit
d3282f55de
@ -430,6 +430,8 @@ $('button').click(function () {
|
|||||||
function challengeEthereum(id, data) {
|
function challengeEthereum(id, data) {
|
||||||
console.log('Challenging task N ' + data + ' on Ethereum!');
|
console.log('Challenging task N ' + data + ' on Ethereum!');
|
||||||
contractInstance.challenge.sendTransaction(data, function (err, txHash) {
|
contractInstance.challenge.sendTransaction(data, function (err, txHash) {
|
||||||
$('#challenge-' + id).text('See tx on Etherscan!').attr("onclick", "window.open('https://rinkeby.etherscan.io/tx/" + txHash + "')");
|
if (!err) {
|
||||||
|
$('#challenge-' + id).text('See tx on Etherscan!').attr("onclick", "window.open('https://rinkeby.etherscan.io/tx/" + txHash + "')");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user