-
Notifications
You must be signed in to change notification settings - Fork 90
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 Client option for retry publishing behaviour #820
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.
Looks good to me, I like that Client::is_message_included
is exposed now.
Minor comments.
bindings/wasm/src/tangle/client.rs
Outdated
|
||
#[wasm_bindgen(typescript_type = "Promise<boolean>")] | ||
pub type PromiseBoolean; |
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.
There is already a PromiseBool
in the Wasm bindings, re-use that to avoid duplicate definitions.
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.
That one is located in account -> storage -> traits
it didn't feel right to reuse it. It should be moved to common -> traits
but that is still not merged from #815. I didn't create a file with the same name to avoid merge conflicts.
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.
It should be moved to common, we can deal with the merge conflicts later.
Pull from dev to fix CI. |
Description of change
Add
retry_until_included
option to theClient
for both Wasm and Rust.Add public
is_message_included(message_id) -> bool
to check if message is confirmed by a milestone.Links to any relevant issues
fixes issue #811
Type of change