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

Add documentation for testing cross-contract calls #1125

Open
drewstone opened this issue Feb 8, 2022 · 3 comments
Open

Add documentation for testing cross-contract calls #1125

drewstone opened this issue Feb 8, 2022 · 3 comments
Assignees
Labels
C-question Further information is requested

Comments

@drewstone
Copy link

I'm trying to test a cross-contract system implementation. A few things are unclear:

  • How should the contracts be created in tests if ContractRef's are created in constructors.
  • How to get the contract code hash from Contract::new() result.
  • Whether these contracts need initial balance and how to send balance on Contract::new()

Any help here is appreciated. Even links to the internals to help me investigate are appreciated as it's heavily nested within macros. Is there documentation on exposed contract methods?

@HCastano HCastano added the C-question Further information is requested label Feb 10, 2022
@HCastano
Copy link
Contributor

I don't think this is possible at the moment. See #788 for some more info.

Someone in the comments mentions Redspot. You'll have to write the tests in JS and they will be more integration type tests than unit tests, so keep that in mind.

@RafaelAPB
Copy link

Any progress on this issue?

@h4x3rotab
Copy link

Try this: #1234 (comment)

@HCastano HCastano self-assigned this Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants