@@ -180,9 +180,6 @@ export class IframeStamper {
180
180
}
181
181
182
182
onMessageHandler ( event : MessageEvent ) : void {
183
- console . log ( "full event data" , event . data ) ;
184
- console . log ( "pending requests" , this . pendingRequests ) ;
185
-
186
183
const { type, value, requestId } = event . data || { } ;
187
184
188
185
// Handle messages without requestId (like PUBLIC_KEY_READY)
@@ -279,18 +276,15 @@ export class IframeStamper {
279
276
* Generic function to abstract away request creation
280
277
* @param type
281
278
* @param payload
282
- * @returns
279
+ * @returns expected shape <T>
283
280
*/
284
281
private createRequest < T > (
285
282
type : IframeEventType ,
286
283
payload : any = { }
287
284
) : Promise < T > {
288
- console . log ( "creating request" ) ;
289
285
return new Promise ( ( resolve , reject ) => {
290
286
const requestId = generateUUID ( ) ;
291
287
292
- console . log ( "new request id" , requestId ) ;
293
-
294
288
this . pendingRequests . set ( requestId , {
295
289
resolve,
296
290
reject,
@@ -411,7 +405,6 @@ export class IframeStamper {
411
405
* Function to sign a payload with the underlying iframe
412
406
*/
413
407
async stamp ( payload : string ) : Promise < TStamp > {
414
- console . log ( "calling stamp" ) ;
415
408
if ( this . iframePublicKey === null ) {
416
409
throw new Error (
417
410
"null iframe public key. Have you called/awaited .init()?"
0 commit comments