CityOfZion / neo-debugger-tools

A set of tools to develop NEO smart contracts
MIT License
24 stars 20 forks source link

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

Open keisuke630 opened 5 years ago

keisuke630 commented 5 years ago

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

lock9 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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?