@@ -2,7 +2,7 @@ import { RecordsEditor } from './builders/RecordsEditor'
22import { RemoteTxBuilder } from './builders/RemoteTxBuilder'
33import {
44 AccountStatus ,
5- AlgorithmId2CoinType ,
5+ SignType2CoinType ,
66 BitNetwork ,
77 CheckSubAccountStatus ,
88 CoinType ,
@@ -34,7 +34,7 @@ import {
3434 toRecordExtended ,
3535} from './tools/account'
3636import { BitErrorCode , BitIndexerErrorCode , BitSubAccountErrorCode , DotbitError } from './errors/DotbitError'
37- import { TxsWithMMJsonSignedOrUnSigned } from './fetchers/RegisterAPI.type'
37+ import { SignTxListParams } from './fetchers/RegisterAPI.type'
3838import { CrossChainAccountStatusRes } from './fetchers/CrossChainAPI'
3939import { matchDWebProtocol } from './tools/common'
4040
@@ -154,9 +154,9 @@ export class BitAccount {
154154 coin_type : coinType ,
155155 } )
156156
157- await this . signer . signTxList ( txs )
157+ const signatureList = await this . signer . signTxList ( txs )
158158
159- return await this . bitBuilder . subAccountAPI . sendTransaction ( txs )
159+ return await this . bitBuilder . subAccountAPI . sendTransaction ( signatureList )
160160 }
161161
162162 /**
@@ -240,9 +240,9 @@ export class BitAccount {
240240
241241 const txs = await this . bitBuilder . mintSubAccounts ( mintSubAccountsParams )
242242
243- await this . signer . signTxList ( txs )
243+ const signatureList = await this . signer . signTxList ( txs )
244244
245- return await this . bitBuilder . subAccountAPI . sendTransaction ( txs )
245+ return await this . bitBuilder . subAccountAPI . sendTransaction ( signatureList )
246246 }
247247
248248 /**
@@ -260,7 +260,7 @@ export class BitAccount {
260260 const signerChainType = CoinType2ChainType [ signerCoinType ]
261261 const newChainType = CoinType2ChainType [ keyInfo . coin_type ]
262262
263- let mmJsonTxs : TxsWithMMJsonSignedOrUnSigned
263+ let mmJsonTxs : SignTxListParams
264264 if ( isOwner ) {
265265 mmJsonTxs = await this . bitBuilder . changeOwner ( {
266266 chain_type : signerChainType ,
@@ -286,9 +286,9 @@ export class BitAccount {
286286 } )
287287 }
288288
289- const res = await this . signer . signTxList ( mmJsonTxs )
289+ const signatureList = await this . signer . signTxList ( mmJsonTxs )
290290
291- return await this . bitBuilder . registerAPI . sendTransaction ( res )
291+ return await this . bitBuilder . registerAPI . sendTransaction ( signatureList )
292292 }
293293
294294 /**
@@ -332,8 +332,8 @@ export class BitAccount {
332332 } ,
333333 } )
334334
335- const res = await this . signer . signTxList ( txs )
336- return await this . bitBuilder . registerAPI . sendTransaction ( res )
335+ const signatureList = await this . signer . signTxList ( txs )
336+ return await this . bitBuilder . registerAPI . sendTransaction ( signatureList )
337337 }
338338
339339 /**
@@ -360,7 +360,7 @@ export class BitAccount {
360360 const info = await this . info ( )
361361 return {
362362 key : info . owner_key ,
363- coin_type : AlgorithmId2CoinType [ info . owner_algorithm_id ] ,
363+ coin_type : SignType2CoinType [ info . owner_algorithm_id ] ,
364364 algorithm_id : info . owner_algorithm_id ,
365365 }
366366 }
@@ -369,7 +369,7 @@ export class BitAccount {
369369 const info = await this . info ( )
370370 return {
371371 key : info . manager_key ,
372- coin_type : AlgorithmId2CoinType [ info . manager_algorithm_id ] ,
372+ coin_type : SignType2CoinType [ info . manager_algorithm_id ] ,
373373 algorithm_id : info . manager_algorithm_id ,
374374 }
375375 }
0 commit comments