aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/samplecoin.html
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-30 20:54:59 +0800
committerobscuren <geffobscura@gmail.com>2014-04-30 20:54:59 +0800
commitc5481b7654b8ab35b2242befc3a5b235e6d70685 (patch)
treeca9f30bdca1b1488e18d0279b014765920d4a849 /ethereal/assets/samplecoin.html
parent183dbcc6a0e56bf46f6406d47134f3b88eb5eef1 (diff)
downloadgo-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.tar
go-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.tar.gz
go-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.tar.bz2
go-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.tar.lz
go-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.tar.xz
go-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.tar.zst
go-tangerine-c5481b7654b8ab35b2242befc3a5b235e6d70685.zip
getBalanceAt getStorageAt, fixed get balance api call
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);
+ })
});
}