@@ -13,19 +13,21 @@ import type {
13
13
import {
14
14
includes ,
15
15
} from '@/utils' ;
16
+ import { TX_DIRECTION } from '@/config' ;
16
17
import {
17
- TRANSACTION_OWNERSHIP_STATUS ,
18
- TX_DIRECTION ,
19
- TX_FUNCTIONS_MULTISIG ,
20
18
TX_FUNCTION_TRANSLATIONS ,
21
- TX_FUNCTIONS ,
22
19
TX_TYPE_TRANSLATIONS ,
23
20
TX_TYPE_LIST_TRANSLATIONS ,
24
- TX_RETURN_TYPE_OK ,
25
21
getOwnershipStatus ,
26
22
getTxDirection ,
27
23
getTxOwnerAddress ,
28
24
} from '@/popup/utils' ;
25
+ import {
26
+ AE_TRANSACTION_OWNERSHIP_STATUS ,
27
+ TX_RETURN_TYPE_OK ,
28
+ TX_FUNCTIONS ,
29
+ TX_FUNCTIONS_MULTISIG ,
30
+ } from '@/protocols/aeternity/config' ;
29
31
import {
30
32
getInnerTransaction ,
31
33
getTxTag ,
@@ -163,7 +165,7 @@ export function useTransactionTx({
163
165
outerTx . value ?. payerId ? outerTx . value : innerTx . value ,
164
166
externalAddress
165
167
|| (
166
- ownershipStatus . value !== TRANSACTION_OWNERSHIP_STATUS . current
168
+ ownershipStatus . value !== AE_TRANSACTION_OWNERSHIP_STATUS . current
167
169
&& txOwnerAddress . value
168
170
)
169
171
|| activeAccount . value . address ,
@@ -181,9 +183,9 @@ export function useTransactionTx({
181
183
182
184
function getOwnershipAccount ( externalOwnerAddress ?: Encoded . AccountAddress ) : IAccountOverview {
183
185
switch ( ownershipStatus . value ) {
184
- case TRANSACTION_OWNERSHIP_STATUS . current :
186
+ case AE_TRANSACTION_OWNERSHIP_STATUS . current :
185
187
return activeAccountExtended . value ;
186
- case TRANSACTION_OWNERSHIP_STATUS . subAccount : {
188
+ case AE_TRANSACTION_OWNERSHIP_STATUS . subAccount : {
187
189
const { accountId, callerId } = innerTx . value || { } ;
188
190
189
191
return accounts . value . find ( ( { address } ) => [ accountId , callerId ] . includes ( address ) ) ! ;
0 commit comments