Skip to content

Commit 39cf7a9

Browse files
committed
chore: lint fix
1 parent 0bb29ce commit 39cf7a9

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { object } from '@metamask/keyring-utils';
22
import type { Infer } from '@metamask/superstruct';
3-
import { array, enums, literal, nonempty, record } from '@metamask/superstruct';
3+
import { array, enums, literal, nonempty } from '@metamask/superstruct';
44
import { definePattern } from '@metamask/utils';
55

66
import {
77
CaipChainIdStruct,
88
KeyringAccountStruct,
9-
SolAccountType,
109
TrxAccountType,
1110
} from '../api';
1211

@@ -23,28 +22,28 @@ export const TrxAddressStruct = definePattern(
2322
* Supported TRON methods.
2423
*/
2524
export declare enum TrxMethod {
26-
SignMessageV2 = "signMessageV2",
27-
VerifyMessageV2 = "verifyMessageV2"
25+
SignMessageV2 = 'signMessageV2',
26+
VerifyMessageV2 = 'verifyMessageV2',
2827
}
2928

3029
export const TrxEoaAccountStruct = object({
31-
...KeyringAccountStruct.schema,
32-
/**
33-
* Account address.
34-
*/
35-
address: TrxAddressStruct,
36-
/**
37-
* Account type.
38-
*/
39-
type: literal(`${TrxAccountType.Eoa}`),
40-
/**
41-
* Account supported scopes (CAIP-2 chain IDs).
42-
*/
43-
scopes: nonempty(array(CaipChainIdStruct)),
44-
/**
45-
* Account supported methods.
46-
*/
47-
methods: array(enums(Object.values(TrxMethod))),
30+
...KeyringAccountStruct.schema,
31+
/**
32+
* Account address.
33+
*/
34+
address: TrxAddressStruct,
35+
/**
36+
* Account type.
37+
*/
38+
type: literal(`${TrxAccountType.Eoa}`),
39+
/**
40+
* Account supported scopes (CAIP-2 chain IDs).
41+
*/
42+
scopes: nonempty(array(CaipChainIdStruct)),
43+
/**
44+
* Account supported methods.
45+
*/
46+
methods: array(enums(Object.values(TrxMethod))),
4847
});
4948

5049
export type TrxEoaAccount = Infer<typeof TrxEoaAccountStruct>;

0 commit comments

Comments
 (0)