diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-11 03:14:38 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-11 03:14:38 +0800 |
commit | f22684439a807f88406e90718e61d536edd469f1 (patch) | |
tree | 3e3383fe7e88211510284bb12acfa4405c6dc63c /cmd/mist/assets/examples | |
parent | bbe8b186600992ada6da9e75e9976cd5a9dc0ae3 (diff) | |
download | dexon-f22684439a807f88406e90718e61d536edd469f1.tar.gz dexon-f22684439a807f88406e90718e61d536edd469f1.tar.zst dexon-f22684439a807f88406e90718e61d536edd469f1.zip |
Updated RPC
* Added a generic RawMessage deserialiser
* Updated ethereum.js
* Updated coin test app
Diffstat (limited to 'cmd/mist/assets/examples')
-rw-r--r-- | cmd/mist/assets/examples/coin.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/mist/assets/examples/coin.html b/cmd/mist/assets/examples/coin.html index 115145c4c..b6bab682f 100644 --- a/cmd/mist/assets/examples/coin.html +++ b/cmd/mist/assets/examples/coin.html @@ -77,7 +77,8 @@ } document.querySelector("#contract_addr").innerHTML = address; - var contract = web3.eth.contract(address, desc); + var Contract = web3.eth.contract(desc); + contract = new Contract(address); contract.Changed({from: eth.coinbase}).changed(function() { refresh(); }); @@ -88,7 +89,7 @@ var table = document.querySelector("#table_body"); table.innerHTML = ""; // clear - var storage = eth.storageAt(address); + var storage = eth.getStorage(address); table.innerHTML = ""; for( var item in storage ) { table.innerHTML += "<tr><td>"+item+"</td><td>"+web3.toDecimal(storage[item])+"</td></tr>"; |