@@ -100,7 +100,7 @@ describe('Withdraw NFT test', function () {
100100 address : accInfo . owner ,
101101 exchangeAddress : loopring_exported_account . exchangeAddr ,
102102 keyNonce : accInfo . nonce - 1 ,
103- walletType : ConnectorNames . Unknown ,
103+ walletType : ConnectorNames . MetaMask ,
104104 }
105105 )
106106 console . log ( 'eddsakey:' , eddsaKey . sk )
@@ -110,22 +110,23 @@ describe('Withdraw NFT test', function () {
110110
111111 let { apiKey } = await userApi . getUserApiKey ( request , eddsaKey . sk )
112112 apiKey = apiKey ?? loopring_exported_account . apiKey ;
113- console . log ( apiKey )
113+ console . log ( 'apiKey' , apiKey )
114+
114115 const request2 : GetNextStorageIdRequest = {
115116 accountId : accInfo . accountId ,
116117 sellTokenId : 1
117118 }
118119
119120 const storageId = await userApi . getNextStorageId ( request2 , apiKey ) ;
120-
121+ console . log ( 'storageId' , storageId )
121122 const requestFee : GetNFTOffchainFeeAmtRequest = {
122123 accountId :accInfo . accountId ,
123124 tokenAddress :loopring_exported_account . nftTokenAddress ,
124125 requestType :OffchainNFTFeeReqType . NFT_WITHDRAWAL ,
125126 amount :'0' ,
126127 }
127- const responseFee = await userApi . getNFTOffchainFeeAmt ( requestFee , apiKey )
128-
128+ const resultFee = await userApi . getNFTOffchainFeeAmt ( requestFee , apiKey )
129+ console . log ( 'requestFee' , resultFee )
129130 const request3 :NFTWithdrawRequestV3 = {
130131 minGas : 0 ,
131132 exchange : exchangeInfo . exchangeAddress ,
@@ -140,7 +141,7 @@ describe('Withdraw NFT test', function () {
140141 extraData :'' ,
141142 maxFee : {
142143 tokenId : 1 ,
143- amount : responseFee . fees [ 0 ] ?. fee ?? '676000000000000000'
144+ amount : resultFee . fees [ 0 ] ?. fee ?? '676000000000000000'
144145 } ,
145146 storageId : storageId ?. offchainId ?? 9 ,
146147 validUntil : 1667396982 ,
@@ -149,7 +150,7 @@ describe('Withdraw NFT test', function () {
149150 const response = await userApi . submitNFTWithdraw ( {
150151 request :request3 ,
151152 web3, chainId : ChainId . GOERLI ,
152- walletType : ConnectorNames . Unknown ,
153+ walletType : ConnectorNames . Trezor ,
153154 eddsaKey : eddsaKey . sk , apiKey} )
154155 console . log ( 'response:' , response )
155156
0 commit comments