4

I get invalid address when I try to, I suspect --light doesn't enable deploys -- is that so?

1 Answer 1

4

According to this issue

https://github.com/trufflesuite/truffle/issues/534

it's not possible to deploy with light sync mode.

The contract address in the transaction receipt will be null, which will cause the "invalid address" error.

There are also newer issues at github confirming that they also have the problem. E.g. https://github.com/ethereum/go-ethereum/issues/15366

There is someone working on a pull request for this.

@ivica7 Hi, after investigation, the contract deploy correctly in light mode. HOWEVER, it doesn't render correctly a contractAddress after calling web3.eth.getTransactionReceipt, which is causing Truffle to fail during the deployment.

I'm working on a PR to fix this issue in truffle with a work-around. Will keep you posted.

1
  • 1
    Looks like this has been fixed in 1.8
    – ivicaa
    Commented Mar 8, 2018 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.