aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/samplecoin.html
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets/samplecoin.html')
-rw-r--r--ethereal/assets/samplecoin.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/ethereal/assets/samplecoin.html b/ethereal/assets/samplecoin.html
index 02efa8e01..3b039fb04 100644
--- a/ethereal/assets/samplecoin.html
+++ b/ethereal/assets/samplecoin.html
@@ -23,15 +23,19 @@ function tests() {
function init() {
eth.getKey(function(key) {
- eth.getStorage(jefcoinAddr, key, function(storage) {
+ eth.getStorageAt(jefcoinAddr, key, function(storage) {
document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
});
eth.watch(jefcoinAddr, function(stateObject) {
- eth.getStorage(jefcoinAddr, key, function(storage) {
+ eth.getStorageAt(jefcoinAddr, key, function(storage) {
document.querySelector("#currentAmount").innerHTML = "Amount: " + storage;
});
});
+
+ eth.getBalanceAt(key, function(balance) {
+ debug("balance", balance);
+ })
});
}