Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I load TWO contracts in the ONE UnitTest by using DebugManager.LoadContract? #186

Open
keisuke630 opened this issue May 7, 2019 · 3 comments

Comments

@keisuke630
Copy link

I want to do UnitTest loading the two contracts in the same class.
Can I do this?

@lock9
Copy link

lock9 commented May 7, 2019

Hello Keisuke, you can work with two smart contracts, however, I'm almost sure that you can't invoke other smart contracts.
How are you doing your tests? We use a virtual blockchain, so it may not be possible at this moment but could be implemented in the future.
What exactly do you want to achieve using 2 contracts?

@keisuke630
Copy link
Author

keisuke630 commented May 8, 2019

Thank you for answering ,lock9.
I want to do dynamic invoke one smart contract through the other smart contracts.
One smart contract give storage context to the other smart contract and manipulate it.

@lock9
Copy link

lock9 commented May 13, 2019

Sorry, I don't really know the answer. I need a few more days to investigate.
I suppose you are using the master branch, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants