-
Notifications
You must be signed in to change notification settings - Fork 3
Incorrect block producer address #44
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
base: qf-master
Are you sure you want to change the base?
Incorrect block producer address #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the upstream project file. Seems like we may leave minimal changes in this and put SPIN-specific logic somewhere else to simplify new upstream versions merge later.
| const { api } = useApi(); | ||
|
|
||
| useEffect(() => { | ||
| const loadAuxData = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant function definition? Can we put loadAuxData body into the outer function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useEffect callback cannot be async directly, that’s why I wrapped it.
| } | ||
|
|
||
| return null; | ||
| return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You’re right, this change was unnecessary. Returning null was correct in this case.
55b69a9 to
8da3f37
Compare
Fix
auxDatacall in a dedicateduseEffectto avoid redundant requests.Result
Related to QuantumFusion-network/spec#363.