diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-10 08:00:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-10 08:00:18 +0800 |
commit | f73a5f067a3f135fa87f887606939ff52afd9258 (patch) | |
tree | 976d23ec43adefe54b75c53eff1f64c3e636ba77 /ethereal/assets/samplecoin | |
parent | 1471585af082632b33eae5bf489d0ae0b277b369 (diff) | |
download | go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.tar go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.tar.gz go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.tar.bz2 go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.tar.lz go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.tar.xz go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.tar.zst go-tangerine-f73a5f067a3f135fa87f887606939ff52afd9258.zip |
fxed
Diffstat (limited to 'ethereal/assets/samplecoin')
-rw-r--r-- | ethereal/assets/samplecoin/samplecoin.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ethereal/assets/samplecoin/samplecoin.html b/ethereal/assets/samplecoin/samplecoin.html index 6330b9ea2..384936780 100644 --- a/ethereal/assets/samplecoin/samplecoin.html +++ b/ethereal/assets/samplecoin/samplecoin.html @@ -13,11 +13,9 @@ var jefcoinAddr = "b7cb72c47ec4f31751d0d628b5a33fd6671bbba0" var mAddr = "" function createTransaction() { - var addr = document.querySelector("#addr").value; - var amount = document.querySelector("#amount").value; + var addr = ("0x" + document.querySelector("#addr").value).pad(32); + var amount = document.querySelector("#amount").value.pad(32); - addr = ("0x"+addr).pad(32) - amount = amount.pad(32) var data = (addr + amount).unbin(); eth.transact(mAddr, jefcoinAddr, 0, "10000000", "250", data, function(receipt) { debug("received tx hash:", reciept.address) |