This commit is contained in:
obscuren
2015-02-05 08:29:41 -08:00
parent 1d519854e2
commit 9d2166a964
3 changed files with 116 additions and 88 deletions

View File

@@ -93,18 +93,18 @@
function transact() {
var to = document.querySelector("#address").value;
if( to.length == 0 ) {
to = "0x4205b06c2cfa0e30359edcab94543266cb6fa1d3";
to = "0x4205b06c2cfa0e30359edcab94543266cb6fa1d3";
} else {
to = "0x"+to;
}
var value = parseInt( document.querySelector("#amount").value );
contract.transact({gas: "10000", gasprice: eth.gasPrice}).send( to, value );
}
reflesh();
</script>
var value = parseInt( document.querySelector("#amount").value );
contract.transact({gas: "10000", gasprice: eth.gasPrice}).send( to, value );
}
reflesh();
</script>
</html>