question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use with factory contracts + truffle

See original GitHub issue

Hi,

Awesome library by the way 😃

I have this very weird error using truffle and a factory contract that creates other contracts. I’ve reproduced the error here: https://github.com/mrwillis/typechain-factory-repro. It is a very simple project.

Set up instructions are in the README.

For some reason, when I change the visibility of the problem member in the created contract (Dummy.sol) to public, the transaction is unable to complete. I tried increasing the gas with ganache-cli to a very large amount as well as the gas setting in the truffle to no avail.

Any ideas? Is this a bug?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
krzkaczorcommented, Jul 5, 2018

I am on it, its really interesting case 😄 I tested it with Remix and it worked there. Soooo it might be a TypeChain / Web3.js issue in the end.

Btw. protip for setting up the project — you don’t have to require tsc installed globally just add it to your project as local dep.

1reaction
krzkaczorcommented, Jul 3, 2018

@mrwillis Hey, sorry for the delay. I will take a look at it tmrw. Which is in 12h in my timezone ;D

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use with factory contracts + truffle · Issue #63 · dethcrypto ...
Hi, Awesome library by the way :) I have this very weird error using truffle and a factory contract that creates other contracts....
Read more >
cannot get state variable of a contract deployed from a factory ...
Please try the following : Open the truffle development console at the root of your truffle project with the command truffle develop.
Read more >
Interact with your contracts - Truffle Suite
When you execute a contract function via a call you will receive the return value immediately. In summary, calls: Are free (do not...
Read more >
How to create and deploy a smart contract with Hardhat
1. Ethereum development environments like Truffle and Hardhat make it easier to work with smart contract... 2. Hardhat is a development environment that...
Read more >
Unable to run the smartContract using Truffle Console. Getting ...
While I try to run the smart contract using truffle console it errors out stating "insufficient funds for gas"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found