Skip to content

Commit 8d4d7ea

Browse files
feat: allow debugger to lock specification
1 parent 8f216c5 commit 8d4d7ea

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/debugger/app/components/frame-debugger.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,10 @@ export const FrameDebugger = React.forwardRef<
105105
resolveSigner() {
106106
switch (protocol.protocol) {
107107
case "farcaster":
108-
// it creates copies of the signer which is bad because if the signer is internally
109-
// updated, we see only old value although the signer is updated. This is true only for public properties
110-
// probably getters will be better in this regard?
111-
return farcasterSignerState.withContext(frameContext.farcaster);
112108
case "farcaster_v2":
113-
return farcasterSignerState.withContext(frameContext.farcaster);
109+
return farcasterSignerState.withContext(frameContext.farcaster, {
110+
specification: protocol.specification,
111+
});
114112
case "xmtp":
115113
return xmtpSignerState.withContext(frameContext.xmtp);
116114
case "lens":

0 commit comments

Comments
 (0)