-
Notifications
You must be signed in to change notification settings - Fork 12
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 ICQ for unbonding queue #19
Conversation
6b5f872
to
3538a83
Compare
ce5fe98
to
bba5ab8
Compare
29da5f6
to
03cc1c3
Compare
03cc1c3
to
830eec5
Compare
contracts/puppeteer/src/contract.rs
Outdated
}, | ||
)?; | ||
|
||
response = response.add_submessage(SubMsg::reply_on_success( |
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 can add all submessages to one vector with type Vec<SubMsg<NeutronMsg>>
and attach them in response using add_submessages
. In this case there will be no need need line 295.
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.
I will still have to define this vector of messages instead of response.
I will check out if I can collect these messages into a vector using iterators only. If not, I don't think we can refactor this
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.
In this case you will not be required to mutate response every time
packages/helpers/src/query_id.rs
Outdated
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.
nice, I did the same in my PR :)
No description provided.