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

Errors when using NewTestChain with custom app #2277

Closed
3 tasks
migueldingli1997 opened this issue Sep 12, 2022 · 2 comments
Closed
3 tasks

Errors when using NewTestChain with custom app #2277

migueldingli1997 opened this issue Sep 12, 2022 · 2 comments

Comments

@migueldingli1997
Copy link

migueldingli1997 commented Sep 12, 2022

Summary of Bug

Custom (or third-party) app expected to be an ibc-go SimApp when the GetSimApp function is called as a result of using the NewTestChainWithValSet function. In my scenario, this expectations is leading to errors when using NewTestChain to create a custom chain after overriding ibctesting.DefaultTestingAppInit as pointed out in the documentation. The NewTestChain function works just fine with the default DefaultTestingAppInit (i.e. no override).

Just for a bit of extra context, I first encountered this error in the process of upgrading my custom chain from v3 to v5 of ibc-go. Seems like that call to GetSimApp was introduced in v4 of ibc-go.

Expected Behaviour

I expect to be able to create a test chain using the NewTestChain function with a custom app.

Version

v5.0.0-rc1

Steps to Reproduce

Calling NewTestChain with a custom app should be enough to trigger the error.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@damiannolan
Copy link
Member

Hey @migueldingli1997, could you try with v5.0.0-rc2?

The code you point to has been removed, see: #2148

@migueldingli1997
Copy link
Author

Hey @migueldingli1997, could you try with v5.0.0-rc2?

The code you point to has been removed, see: #2148

That works, thank you! I will close this issue.

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

No branches or pull requests

2 participants