Closed PavelPolyakov closed 7 years ago
hi @christianlundkvist, maybe you'd see what am I doing wrong?
I also browsed the eth-lightwallet
source code, especially the valueTx
and hadn't found anything which can cause that behaviour, no mentions of the contract or something.
function valueTx (txObject) { ... }
vs var valueData = txutils.valueTx(FROM, txOptions)
doesn't match. Also, I'm pretty sure valueTx
and the Transaction
object from ethereumjs-tx
that it uses both require you to specify every value in the txObject
. There are no defaults.
Hi @PavelPolyakov yeah as @niran said there is no FROM
input in the valueTx function. the valueTx
function only takes a txObject
So you need to plug in the from
address in the txObject
instead.
@niran , @christianlundkvist oh good, thanks, my bad. My eyes were blurred that I didn't catch that.
Thank you!
Hi @niran @christianlundkvist ,
sorry for being back with my issue, but it continued :(
here is the gist for the current, only eth-lightwallet
example:
https://gist.github.com/PavelPolyakov/a89bc59f8fe34abe70ef189da8472def
for some reason, when I try to signing.signTx
the callback for the keyFromPassword
is executed twice and then program fails.
any hints?
it is important that I want to store my wallets, so I use deserialize
. And, when it deserializes (as I understand) it uses the deprecated method. However I'm not sure that that i the reason.
The new KeyStore constructor has been deprecated in favor of KeyStore.createVault(), and will be removed in a future version. Read issue #109 for info. https://github.com/ConsenSys/eth-lightwallet/issues/109
Would appreciate your thoughts.
Regards,
my bad again, this time sender didn't have money and this call
web3.eth.sendRawTransaction(signedValueTx);
was causing the exception, but for some reason that exception was causing the call of the callback 2nd time.
Regards 🙌 ,
Hello,
Recently started to play with ethereum development and met the point where I need to transfer some
ETH
from the account A to B. I usetestrpc
, but want to create the accounts on demand, so I integratedeth-lightwallet
.As
testrpc
doesn't know about the new accont and I need to privide the signed request and do raw transaction. Luckily there is an appropriate API provided by theeth-lightwallet
.However, I observed that when I execute this transaction - the value goes out from the account but never lands to the destination one. And, I think this is the reason, in the logs of the
testrpc
I see that the contract was created.Here is the gist with the reproduction: https://gist.github.com/PavelPolyakov/1a2bc0a2b97e363900c19710390211da
There I used three variants:
web3
capabilities (works only for the accounts which are controlled by the testrpc node). So it's not possible to transfer the value from the newly created address.valueTx
. The result - money never come to the destination.ethereumjs-tx
. Downside of this method - private key needs to be exposed. Result - money are transferred correctly.Could you, please, have a look on the issue? Maybe I'm missing something.
Regards,