Skip to content

Commit

Permalink
fix(sign): decline transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
guimroque committed Feb 23, 2024
1 parent adb8ed4 commit 066befa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/transaction/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class TransactionController {
// acc_signed,
// Signer.recoverAddress(hashMessage(hash), signer).toString(),
// );
if (signer && confirm) {
if (signer && confirm === 'true') {
const acc_signed =
Signer.recoverAddress(hashMessage(hash), signer).toString() ==
user.address;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/transaction/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type ICloseTransactionBody = {
export interface ISignByIdPayload {
signer: string;
account: string;
confirm: boolean;
confirm: string;
}

interface ICreateTransactionRequestSchema extends ValidatedRequestSchema {
Expand Down

0 comments on commit 066befa

Please sign in to comment.