! fixed import from zip file

+ import from private key
This commit is contained in:
Taegus
2019-01-05 18:09:08 +01:00
parent 7fb212f7fc
commit b9d5fdadc2
5 changed files with 85 additions and 44 deletions

View File

@@ -215,6 +215,10 @@ class Blockchain {
});
}
importFromPrivateKey(privateKey) {
return web3Local.eth.accounts.privateKeyToAccount(privateKey);
}
subsribePendingTransactions(clbError, clbSuccess, clbData) {
this.txSubscribe = web3Local.eth.subscribe('pendingTransactions', function(error, result){
if (error) {