Skip to content

Commit

Permalink
common fixes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
debris committed Jul 7, 2015
1 parent f1f30d0 commit 7b161b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/contract.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
document.getElementById('status').innerText = "transaction sent, waiting for confirmation";
web3.eth.contract(abi).new({data: code}, function (err, contract) {
if (err) {
console.error('contract creation failed!');
console.error(err);
return;
}
myContract = contract;
Expand Down
2 changes: 1 addition & 1 deletion example/contract_array.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
document.getElementById('status').innerText = "transaction sent, waiting for confirmation";
web3.eth.contract(abi).new({data: code}, function (err, contract) {
if (err) {
console.error('contract creation failed!');
console.error(err);
return;
}
myContract = contract;
Expand Down
4 changes: 1 addition & 3 deletions example/event_inc.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@
// let's assume that we have a private key to coinbase ;)
web3.eth.defaultAccount = web3.eth.coinbase;

var watch = web3.eth.filter('latest');

document.getElementById('create').style.visibility = 'hidden';
document.getElementById('status').innerText = "transaction sent, waiting for confirmation";

web3.eth.contract(abi).new({data: code}, function (err, c) {
if (err) {
console.error('contract creation failed!');
console.error(err);
return;
}

Expand Down

0 comments on commit 7b161b4

Please sign in to comment.