aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/ethereum.js
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-02 19:35:12 +0800
committerobscuren <geffobscura@gmail.com>2014-05-02 19:35:12 +0800
commitf1da6f0564696f4fb5a6c04d1b9e24ed12432d63 (patch)
tree692b4c99cad7ceed5013dd03aca1bfccc2fa1260 /ethereal/assets/ethereum.js
parentee04c6ff6790a9b39ea96a630a60bdcf7f261b97 (diff)
downloadgo-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.tar
go-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.tar.gz
go-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.tar.bz2
go-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.tar.lz
go-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.tar.xz
go-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.tar.zst
go-tangerine-f1da6f0564696f4fb5a6c04d1b9e24ed12432d63.zip
Fixed samplecoin
Diffstat (limited to 'ethereal/assets/ethereum.js')
-rw-r--r--ethereal/assets/ethereum.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ethereal/assets/ethereum.js b/ethereal/assets/ethereum.js
index 1f36f691e..64a7ff47c 100644
--- a/ethereal/assets/ethereum.js
+++ b/ethereal/assets/ethereum.js
@@ -19,8 +19,7 @@ window.eth = {
// Create transaction
//
- // Creates a transaction with the current account
- // If no recipient is set, the Ethereum API will see it as a contract creation
+ // Transact between two state objects
transact: function(sec, recipient, value, gas, gasPrice, data, cb) {
postData({call: "transact", args: [sec, recipient, value, gas, gasPrice, data]}, cb);
},
@@ -202,7 +201,7 @@ String.prototype.unbin = function() {
String.prototype.hex2bin = function() {
bytes = []
- for(var i=2; i< this.length-1; i+=2){
+ for(var i=2; i< this.length-1; i+=2) {
bytes.push(parseInt(this.substr(i, 2), 16));
}