mirror of
https://github.com/fluencelabs/lazy-snark
synced 2025-06-07 03:51:28 +00:00
Fixed button name
This commit is contained in:
parent
ec8236bebc
commit
65e2930408
@ -327,7 +327,7 @@ $(document).ready(function() {
|
|||||||
if (fluenceResponse.hasOwnProperty('verified')) {
|
if (fluenceResponse.hasOwnProperty('verified')) {
|
||||||
if (fluenceResponse.verified) {
|
if (fluenceResponse.verified) {
|
||||||
// все хорошо - мы проверили в флюенсе
|
// все хорошо - мы проверили в флюенсе
|
||||||
$('challenge-' + i).prop('disabled', true);
|
$('#challenge-' + i).prop('disabled', true);
|
||||||
} else {
|
} else {
|
||||||
// мы проверили, пруф неправильный
|
// мы проверили, пруф неправильный
|
||||||
$('#challenge-' + i).text('Challenge on Ethereum!')
|
$('#challenge-' + i).text('Challenge on Ethereum!')
|
||||||
@ -374,8 +374,6 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
};*/
|
};*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('button').click(function () {
|
$('button').click(function () {
|
||||||
@ -395,7 +393,7 @@ $('button').click(function () {
|
|||||||
$('#state-status-fluence-' + i).text(result);
|
$('#state-status-fluence-' + i).text(result);
|
||||||
if (fluenceResponse.result) {
|
if (fluenceResponse.result) {
|
||||||
// все хорошо - мы проверили в флюенсе
|
// все хорошо - мы проверили в флюенсе
|
||||||
$('challenge-' + i).prop('disabled', true);
|
$('#challenge-' + i).prop('disabled', true);
|
||||||
} else {
|
} else {
|
||||||
// мы проверили, пруф неправильный
|
// мы проверили, пруф неправильный
|
||||||
$('#challenge-' + i).text('Challenge on Ethereum!')
|
$('#challenge-' + i).text('Challenge on Ethereum!')
|
||||||
@ -405,9 +403,10 @@ $('button').click(function () {
|
|||||||
challengeEthereum(data);
|
challengeEthereum(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function challengeEthereum(jobId) {
|
function challengeEthereum(jobId) {
|
||||||
contractInstance.challenge.sendTransaction(jobId, function (err, txHash) {
|
contractInstance.challenge.sendTransaction(jobId, function (err, txHash) {
|
||||||
$('challenge-' + jobId).text('See tx on Etherscan!').attr("href", "https://ropsten.etherscan.io/tx/" + txHash);
|
$('#challenge-' + jobId).text('See tx on Etherscan!').attr("href", "https://ropsten.etherscan.io/tx/" + txHash);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user