File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,22 +4,21 @@ import { serialize, unserialize } from '../utils';
4
4
import { PolymathError } from '../PolymathError' ;
5
5
import { ErrorCode } from '../types' ;
6
6
import { Context } from '../Context' ;
7
- import { PolymathBase } from '../PolymathBase' ;
8
7
9
- export interface UniqueIdentifier {
8
+ export interface UniqueIdentifiers {
10
9
address : string ;
11
10
}
12
11
13
- function isUniqueIdentifiers ( identifier : any ) : identifier is UniqueIdentifier {
12
+ function isUniqueIdentifiers ( identifier : any ) : identifier is UniqueIdentifiers {
14
13
const { address } = identifier ;
15
14
16
15
return typeof address === 'string' ;
17
16
}
18
17
19
- export interface Params extends UniqueIdentifier { }
18
+ export interface Params extends UniqueIdentifiers { }
20
19
21
20
export class Wallet extends Entity < Params > {
22
- public static generateId ( { address } : UniqueIdentifier ) {
21
+ public static generateId ( { address } : UniqueIdentifiers ) {
23
22
return serialize ( 'wallet' , {
24
23
address,
25
24
} ) ;
You can’t perform that action at this time.
0 commit comments