Skip to content
Snippets Groups Projects
Commit 5f6c7ba4 authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Testeando

parent 1549db69
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ async function page_loaded() {
error = 'El plugin no puede detectar directamente desde un archivo. El documento necesita estar en un servidor.';
else {
// Non-dapp browsers...
//window.alert("Non-Ethereum browser detected. Consider using MetaMask.");
//alertar("Non-Ethereum browser detected. Consider using MetaMask.");
error = 'No se detectó un browser Ethereum. Por favor, <a href="https://metamask.io/" target="_blank">instalá MetaMask</a>.';
}
if (error) {
......@@ -220,11 +220,11 @@ function api_version() {
function setup_existing_contract(abi, addr) {
if (api_version() == 0) {
var MyContract = window.web3.eth.contract(abiNew);
console.log(MyContract);
console.log("Mi contrato: ", MyContract);
contract = MyContract.at(mainaddr[netid]);
return contract;
}
window.alert('Do not know how to deal with contracts at this API version (' + window.web3.version.api + ').');
alertar('Do not know how to deal with contracts at this API version (' + window.web3.version.api + ').');
return;
}
......@@ -235,7 +235,7 @@ function setup_existing_instance(abi, addr) {
contract = MyContract.at(addr);
return contract;
}
window.alert('Do not know how to deal with contracts at this API version (' + window.web3.version.api + ').');
alertar('Do not know how to deal with contracts at this API version (' + window.web3.version.api + ').');
return;
}
......@@ -418,6 +418,7 @@ async function nueva_votacion(arguments, proposals, voters) {
alertarLoading('Creando un nuevo contrato de votación.');
var contract = setup_existing_contract(abiNew, mainaddr[netid]);
console.log("Contrato: ",contract);
if (!contract)
return;
......@@ -745,7 +746,7 @@ function access_accounts() {
// Acccounts now exposed, or the error gets caught
accExposed = 1;
} catch (error) {
// window.alert(
// alertar(
// "Access to your ethereum account was denied. The reason " +
// "given with was \"" +
// error +
......
......@@ -41,7 +41,7 @@
<div class="row">
<div class="form-group form-group-lg col-sm-12">
<label for="_title" class="form-required">Título de la votación</label>
<input class="form-control" type="text" id="_title" name="_title" value="" size="40"
<input class="form-control" type="text" id="_title" name="_title" value="Quien es mejor" size="40"
required="required" aria-required="true">
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment