Skip to content

Commit 80838fd

Browse files
committed
fix: rename interface and remove Context import
1 parent 707a59a commit 80838fd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/entities/Wallet.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,21 @@ import { serialize, unserialize } from '../utils';
44
import { PolymathError } from '../PolymathError';
55
import { ErrorCode } from '../types';
66
import { Context } from '../Context';
7-
import { PolymathBase } from '../PolymathBase';
87

9-
export interface UniqueIdentifier {
8+
export interface UniqueIdentifiers {
109
address: string;
1110
}
1211

13-
function isUniqueIdentifiers(identifier: any): identifier is UniqueIdentifier {
12+
function isUniqueIdentifiers(identifier: any): identifier is UniqueIdentifiers {
1413
const { address } = identifier;
1514

1615
return typeof address === 'string';
1716
}
1817

19-
export interface Params extends UniqueIdentifier {}
18+
export interface Params extends UniqueIdentifiers {}
2019

2120
export class Wallet extends Entity<Params> {
22-
public static generateId({ address }: UniqueIdentifier) {
21+
public static generateId({ address }: UniqueIdentifiers) {
2322
return serialize('wallet', {
2423
address,
2524
});

0 commit comments

Comments
 (0)