Unable to use with factory contracts + truffle
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@mrwillis Hey, sorry for the delay. I will take a look at it tmrw. Which is in 12h in my timezone ;D