Skip to content

Commit

Permalink
type MasterCopyResponse - SafeSingletonResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed Sep 12, 2023
1 parent e2df557 commit 540574a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api-kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const serviceInfo: SafeServiceInfoResponse = await safeService.getServiceInfo()
Returns the list of Safe master copies.

```js
const masterCopies: MasterCopyResponse = await safeService.getServiceMasterCopiesInfo()
const masterCopies: SafeSingletonResponse = await safeService.getServiceMasterCopiesInfo()
```

### decodeData
Expand Down
4 changes: 2 additions & 2 deletions packages/api-kit/src/SafeApiKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
AllTransactionsOptions,
DeleteSafeDelegateProps,
GetSafeDelegateProps,
MasterCopyResponse,
SafeSingletonResponse,
ModulesResponse,
OwnerResponse,
ProposeTransactionProps,
Expand Down Expand Up @@ -80,7 +80,7 @@ class SafeApiKit {
*
* @returns The list of Safe master copies
*/
async getServiceMasterCopiesInfo(): Promise<MasterCopyResponse[]> {
async getServiceMasterCopiesInfo(): Promise<SafeSingletonResponse[]> {
return sendRequest({
url: `${this.#txServiceBaseUrl}/v1/about/master-copies`,
method: HttpMethod.Get
Expand Down
2 changes: 1 addition & 1 deletion packages/api-kit/src/types/safeTransactionServiceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type SafeServiceInfoResponse = {
}
}

export type MasterCopyResponse = {
export type SafeSingletonResponse = {
address: string
version: string
deployer: string
Expand Down

0 comments on commit 540574a

Please sign in to comment.