Commit 8131c6b8 authored by plaasio's avatar plaasio 👷🏽

Update pnv.js

parent cf82cecb
......@@ -181,14 +181,15 @@ var provider = new SignerProvider(ethHost, {
}
try{
getPySrc('lcd.py', ['ADD VALIDATOR', 'scan keys..']);
//var read = await getPySrc('rd-rfid.py', []);
//var write = await getPySrc('wt-rfid.py', ['value1', 'value2', 'value3']);
var action = await new Promise.race([getPySrc('rd-rfid.py', [])]);
new Promise.race([getPySrc('rd-rfid.py', [])]).then(function(action){
try{
vAddressPublic=parse(action).pub;
......@@ -207,9 +208,11 @@ getPySrc('lcd.py', ['VALIDATOR ADDED', 'testing..']);
}
init();
}catch(e){
init();
}).catch(function(er){
getPySrc('lcd.py', ['error!', e]);
}
getPySrc('lcd.py', ['error!', er]);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment