diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-20 04:42:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-20 04:42:55 +0800 |
commit | 8585e59718e6b75a38833801f1725730c1b9fb01 (patch) | |
tree | 905a5751ae8aa5ec253ddaec5208600fc7aac586 /mist/assets/ext/qml_messaging.js | |
parent | ae1de6593c31fbaa4429588cea2702dd5b01a722 (diff) | |
download | go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.gz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.bz2 go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.lz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.xz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.zst go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.zip |
Re-writing ethereum.js. Added future/promises support.
Diffstat (limited to 'mist/assets/ext/qml_messaging.js')
-rw-r--r-- | mist/assets/ext/qml_messaging.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mist/assets/ext/qml_messaging.js b/mist/assets/ext/qml_messaging.js new file mode 100644 index 000000000..8222c848d --- /dev/null +++ b/mist/assets/ext/qml_messaging.js @@ -0,0 +1,13 @@ +function HandleMessage(data) { + var message; + try { message = JSON.parse(data) } catch(e) {}; + + if(message) { + switch(message.type) { + case "coinbase": + return eth.coinBase(); + case "block": + return eth.blockByNumber(0); + } + } +} |