Skip to content

Commit 7868a19

Browse files
committed
cleanup
1 parent 2005306 commit 7868a19

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/iframe-stamper/src/index.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ export class IframeStamper {
180180
}
181181

182182
onMessageHandler(event: MessageEvent): void {
183-
console.log("full event data", event.data);
184-
console.log("pending requests", this.pendingRequests);
185-
186183
const { type, value, requestId } = event.data || {};
187184

188185
// Handle messages without requestId (like PUBLIC_KEY_READY)
@@ -279,18 +276,15 @@ export class IframeStamper {
279276
* Generic function to abstract away request creation
280277
* @param type
281278
* @param payload
282-
* @returns
279+
* @returns expected shape <T>
283280
*/
284281
private createRequest<T>(
285282
type: IframeEventType,
286283
payload: any = {}
287284
): Promise<T> {
288-
console.log("creating request");
289285
return new Promise((resolve, reject) => {
290286
const requestId = generateUUID();
291287

292-
console.log("new request id", requestId);
293-
294288
this.pendingRequests.set(requestId, {
295289
resolve,
296290
reject,
@@ -411,7 +405,6 @@ export class IframeStamper {
411405
* Function to sign a payload with the underlying iframe
412406
*/
413407
async stamp(payload: string): Promise<TStamp> {
414-
console.log("calling stamp");
415408
if (this.iframePublicKey === null) {
416409
throw new Error(
417410
"null iframe public key. Have you called/awaited .init()?"

0 commit comments

Comments
 (0)