@@ -128,45 +128,43 @@ var sendSignedTransactionProposal = /*#__PURE__*/function () {
128128 switch ( _context2 . prev = _context2 . next ) {
129129 case 0 :
130130 username = _ref3 . username , user = _ref3 . user , chaincode = _ref3 . chaincode , contract = _ref3 . contract , fcn = _ref3 . fcn , args = _ref3 . args ;
131- console . log ( 'in send sign' ) ; // Create a new file system based wallet for managing identities.
132-
131+ // Create a new file system based wallet for managing identities.
133132 walletPath = _path [ "default" ] . join ( WALLET_PATH , "" . concat ( user . username , ".id" ) ) ;
134133
135134 _fs [ "default" ] . writeFileSync ( walletPath , JSON . stringify ( user . wallet ) ) ;
136135
137- _context2 . next = 6 ;
136+ _context2 . next = 5 ;
138137 return _fabricNetwork . Wallets . newFileSystemWallet ( WALLET_PATH ) ;
139138
140- case 6 :
139+ case 5 :
141140 wallet = _context2 . sent ;
142- _context2 . next = 9 ;
141+ _context2 . next = 8 ;
143142 return wallet . get ( username ) ;
144143
145- case 9 :
144+ case 8 :
146145 identity = _context2 . sent ;
147146 // build a user object for authenticating with the CA
148147 provider = wallet . getProviderRegistry ( ) . getProvider ( identity . type ) ;
149148 ccp = JSON . parse ( _fs [ "default" ] . readFileSync ( CCP_PATH , 'utf8' ) ) ;
150149 client = new _fabricCommon . Client ( ccp ) ;
151- _context2 . next = 15 ;
150+ _context2 . next = 14 ;
152151 return provider . getUserContext ( user . wallet , username ) ;
153152
154- case 15 :
153+ case 14 :
155154 userContext = _context2 . sent ;
156- _context2 . next = 18 ;
155+ _context2 . next = 17 ;
157156 return getContractAndGateway ( {
158157 user : user ,
159158 chaincode : chaincode ,
160159 contract : contract
161160 } ) ;
162161
163- case 18 :
162+ case 17 :
164163 _yield$getContractAnd = _context2 . sent ;
165164 network = _yield$getContractAnd . network ;
166165 channel = network . getChannel ( ) ; // return proposal response
167166
168- console . log ( 'just before sending' ) ;
169- _context2 . next = 24 ;
167+ _context2 . next = 22 ;
170168 return ( 0 , _hyperledgerFabricOfflineTransactionSigning . sendProposal ) ( {
171169 client : client ,
172170 channel : channel ,
@@ -181,11 +179,10 @@ var sendSignedTransactionProposal = /*#__PURE__*/function () {
181179 return result = res ;
182180 } ) ;
183181
184- case 24 :
185- console . log ( 'just after sending' ) ;
182+ case 22 :
186183 return _context2 . abrupt ( "return" , result ) ;
187184
188- case 26 :
185+ case 23 :
189186 case "end" :
190187 return _context2 . stop ( ) ;
191188 }
0 commit comments