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
[api kit] Update delegates endpoint to v2 #804
[api kit] Update delegates endpoint to v2 #804
Conversation
Pull Request Test Coverage Report for Build 9013323948Details
💛 - Coveralls |
…pdate-delegates-endpoint
I had to use this endpoint on the e2e tests: https://safe-transaction-sepolia.staging.5afe.dev/api |
const data = delegate + totp | ||
const signature = await signer.signMessage(data) | ||
const signature = await signDelegate(signer, delegate, this.#chainId) | ||
|
||
const body: any = { |
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.
This is SafeDelegateResponse right?
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.
const body: any = { | |
const body: SafeDelegateResponse = { |
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 think that is the request body which is marked as any on the type.
What it solves
Resolves #786
How this PR fixes it