Closed DalderupMaurice closed 6 years ago
Function KeyStore.prototype.passwordProvider(callback)
The function passwordProvider is an async function that calls thecallback(err, password)
with a password supplied by the user or by other means. The user of the hooked web3-provider is encouraged to write their own passwordProvider.Here's the default function definition:
KeyStore.prototype.passwordProvider = function (callback) { var password = prompt("Enter password to continue", "Enter password"); callback(null, password); };
Thanks for the reply! I have already figured it out in the meanwhile, but that was indeed my fault.
I have replaced "password" with a function, returning callback(null, password);
and it now works perfectly.
I tried to send a transaction to a smart contract using Infura, but whenever I try to send the transaction I get the following error:
I am using web3@1.0.0-beta26 and the issue occurred on both eth-lightwallet version 3.0.0 and 2.5.6.
The error was triggered on this piece of code:
On a sidenote, I am not sure if this is due to the use of hooked-web3-provider. My initialisation of web3 looks something like this: