Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- web3.eth.accounts.signTransaction(transactionObject, process.env.WALLET_PRIVATE_KEY, function (error, signedTx) {
- if (error) {
- log(`${error}`.red);
- } else {
- web3.eth.sendSignedTransaction(signedTx.rawTransaction)
- .on('confirmation', function (number) {//dostuff
- log(`Success: ${number}`.green);
- });
- // Note this address. It will be used to create contract instance from Angular 5 application.
- //console.log("contract deployed to", result.options.address);
- }
- }).catch(function(err){
- log(`${err}`.red);
- });
Add Comment
Please, Sign In to add comment