Skip to content

feat: adding and removing service endpoints - #9

Open
Dudleyneedham wants to merge 2 commits into
mainfrom
dn-service-endpoint
Open

feat: adding and removing service endpoints#9
Dudleyneedham wants to merge 2 commits into
mainfrom
dn-service-endpoint

Conversation

@Dudleyneedham

Copy link
Copy Markdown
Member

Adding tests for the service endpoints

Comment thread basics/serviceEndpoints.ts Outdated
Comment thread basics/serviceEndpoints.ts Outdated
Comment thread basics/serviceEndpoints.ts Outdated
Comment thread basics/serviceEndpoints.ts Outdated
Comment thread basics/serviceEndpoints.ts Outdated
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')
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

as above

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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>
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.

2 participants