feat: adding and removing service endpoints - #9
Open
Dudleyneedham wants to merge 2 commits into
Open
Conversation
rflechtner
reviewed
Apr 30, 2025
Comment on lines
+53
to
+58
| if (result.asRejected) { | ||
| throw new Error(`Service removal failed: ${result.asRejected.error}`) | ||
| } | ||
| if (result.asConfirmed) { | ||
| console.log('Service removed successfully') | ||
| } |
Member
Author
There was a problem hiding this comment.
I have updated this as per your comments.
However, I am getting this response.
Property 'isConfirmed' does not exist on type 'TransactionResult'. Did you mean 'asConfirmed'?ts(2551)
Contributor
There was a problem hiding this comment.
ah we may not have this, in which case it would just be result.status === "confirmed"
Co-authored-by: Raphael Flechtner <39338561+rflechtner@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding tests for the service endpoints