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

lotus state call will panic #5275

Merged
merged 1 commit into from
Jan 8, 2021
Merged

lotus state call will panic #5275

merged 1 commit into from
Jan 8, 2021

Conversation

xgswust
Copy link
Contributor

@xgswust xgswust commented Dec 31, 2020

when use lotus state call method, in lotus/cli/state.go 1620 line, the paramObj needs struct type not a ptr type,if use a ptr type, the program will panic in line 1621(paramObj.NumField())

…e paramObj needs struct type not a ptr type,

if use a ptr type, the program will panic in line 1621(paramObj.NumField())
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an improvement, but still broken for methods which have take non-struct params

@magik6k magik6k merged commit afb9e5f into filecoin-project:master Jan 8, 2021
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

Successfully merging this pull request may close these issues.

3 participants