diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-21 06:37:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-21 06:37:58 +0800 |
commit | 8a7d1a69b34c231626b709d8e79910bba9ef702c (patch) | |
tree | 127c7bb8352530d25b32eba4367a10b4afed6c6b /index.html | |
parent | 76b20be2ea0b95bf700b36df39a5678f8ba7fcc1 (diff) | |
download | dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.gz dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.bz2 dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.lz dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.xz dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.zst dexon-8a7d1a69b34c231626b709d8e79910bba9ef702c.zip |
Fixed setting providers to the right object
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/index.html b/index.html index c4f989537..fc658c00a 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,15 @@ <head> <script type="text/javascript" src="main.js"></script> +<script type="text/javascript" src="websocket.js"></script> +<script type="text/javascript" src="qt.js"></script> <script type="text/javascript"> function registerName() { var name = document.querySelector("#name").value; - name = eth.fromAscii(name); + name = web3.fromAscii(name); - eth.transact({to: "NameReg", gas: "10000", gasPrice: eth.gasPrice, data: [eth.fromAscii("register"), name]}).then(function(tx) { + var eth = web3.eth; + eth.transact({to: "NameReg", gas: "10000", gasPrice: eth.gasPrice, data: [web3.fromAscii("register"), name]}).then(function(tx) { document.querySelector("#result").innerHTML = "Registered name. Please wait for the next block to come through."; }, function(err) { console.log(err); |