aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-05 09:28:54 +0800
committerobscuren <geffobscura@gmail.com>2015-02-05 09:28:54 +0800
commit1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84 (patch)
treee459f8b005415c2f14bb4796b2338c091181c67a /cmd/mist
parent292f7ada8ea4f709ef90b2c20888cdbfbf7b06c6 (diff)
downloaddexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.tar
dexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.tar.gz
dexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.tar.bz2
dexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.tar.lz
dexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.tar.xz
dexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.tar.zst
dexon-1d519854e2bfe8d5f2e8674f4f04ccf9aeaabe84.zip
Propagate known transactions to new peers on connect
Diffstat (limited to 'cmd/mist')
-rw-r--r--cmd/mist/assets/examples/coin.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/mist/assets/examples/coin.html b/cmd/mist/assets/examples/coin.html
index 070ac94a6..a84a828af 100644
--- a/cmd/mist/assets/examples/coin.html
+++ b/cmd/mist/assets/examples/coin.html
@@ -57,8 +57,8 @@
"name":"Changed",
"type":"event",
"inputs": [
- {"name":"to","type":"address","indexed":false},
- {"name":"amount","type":"uint256","indexed":true},
+ {"name":"to","type":"address","indexed":true},
+ {"name":"amount","type":"uint256","indexed":false},
],
}];
@@ -74,12 +74,12 @@
}
var contract = web3.eth.contract(address, desc);
- contract.Changed({to: "0xaabb"}).changed(function(e) {
+ contract.Changed({to: "0xaa"}).changed(function(e) {
console.log("e: " + JSON.stringify(e));
});
contract.transact({gas: "10000", gasprice: eth.gasPrice}).send( "0xaa", 10000 );
function reflesh() {
- document.querySelector("#balance").innerHTML = contract.call().balance(eth.coinbase);
+ document.querySelector("#balance").innerHTML = contract.balance(eth.coinbase);
var table = document.querySelector("#table");
table.innerHTML = ""; // clear