Skip to content

Commit

Permalink
🩹 (signer-eth) [NO-ISSUE]: Add review user interraction for sign type…
Browse files Browse the repository at this point in the history
…d obj (#613)
  • Loading branch information
aussedatlo authored Jan 17, 2025
2 parents e0e2be7 + 9a1b180 commit 3f04fe1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-rockets-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/device-signer-kit-ethereum": patch
---

Add user interaction for sign typed object device action that was removed before
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe("SignTypedDataDeviceAction", () => {
},
{
intermediateValue: {
requiredUserInteraction: UserInteractionRequired.None,
requiredUserInteraction: UserInteractionRequired.SignTypedData,
},
status: DeviceActionStatus.Pending,
},
Expand Down Expand Up @@ -277,7 +277,7 @@ describe("SignTypedDataDeviceAction", () => {
},
{
intermediateValue: {
requiredUserInteraction: UserInteractionRequired.None,
requiredUserInteraction: UserInteractionRequired.SignTypedData,
},
status: DeviceActionStatus.Pending,
},
Expand Down Expand Up @@ -437,7 +437,7 @@ describe("SignTypedDataDeviceAction", () => {
},
{
intermediateValue: {
requiredUserInteraction: UserInteractionRequired.None,
requiredUserInteraction: UserInteractionRequired.SignTypedData,
},
status: DeviceActionStatus.Pending,
},
Expand Down Expand Up @@ -504,7 +504,7 @@ describe("SignTypedDataDeviceAction", () => {
},
{
intermediateValue: {
requiredUserInteraction: UserInteractionRequired.None,
requiredUserInteraction: UserInteractionRequired.SignTypedData,
},
status: DeviceActionStatus.Pending,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ export class SignTypedDataDeviceAction extends XStateDeviceAction<
},
},
ProvideContext: {
entry: assign({
intermediateValue: {
requiredUserInteraction: UserInteractionRequired.SignTypedData,
},
}),
exit: assign({
intermediateValue: {
requiredUserInteraction: UserInteractionRequired.None,
},
}),
invoke: {
id: "provideContext",
src: "provideContext",
Expand Down

0 comments on commit 3f04fe1

Please sign in to comment.