Minor fixes and sample coin "improvements"
This commit is contained in:
@@ -5,6 +5,10 @@ function postData(data, cb) {
|
||||
eth._callbacks[data._seed] = cb;
|
||||
}
|
||||
|
||||
if(data.args === undefined) {
|
||||
data.args = []
|
||||
}
|
||||
|
||||
navigator.qt.postMessage(JSON.stringify(data));
|
||||
}
|
||||
|
||||
@@ -34,6 +38,14 @@ window.eth = {
|
||||
createTx: function(recipient, value, gas, gasPrice, data, cb) {
|
||||
postData({call: "createTx", args: [recipient, value, gas, gasPrice, data]}, cb)
|
||||
},
|
||||
|
||||
getStorage: function(address, storageAddress, cb) {
|
||||
postData({call: "getStorage", args: [address, storageAddress]}, cb)
|
||||
},
|
||||
|
||||
getKey: function(cb) {
|
||||
postData({call: "getKey"}, cb)
|
||||
},
|
||||
}
|
||||
window.eth._callbacks = {}
|
||||
|
||||
|
Reference in New Issue
Block a user