use ibanNamereg in example

This commit is contained in:
debris 2015-08-07 10:34:03 +02:00
parent c81b0c8b16
commit 4ae20702e7
1 changed files with 2 additions and 2 deletions

View File

@ -37,13 +37,13 @@
var Namereg = web3.eth.contract(nameregAbi);
var Deposit = web3.eth.contract(depositAbi);
var namereg = web3.eth.namereg;
var namereg = web3.eth.ibanNamereg;
var deposit;
var iban;
function validateNamereg() {
var address = document.getElementById('namereg').value;
<!--var ok = /^(0x)?[0-9a-f]{40}$/.test(address) || address === 'default';-->
var ok = /^(0x)?[0-9a-f]{40}$/.test(address) || address === 'default';
if (ok) {
namereg = address === 'default' ? web3.eth.namereg : Namereg.at(address);
document.getElementById('nameregValidation').innerText = 'ok!';