diff --git a/src/controllers/TorusController.ts b/src/controllers/TorusController.ts index 984f50c0..7321f63a 100644 --- a/src/controllers/TorusController.ts +++ b/src/controllers/TorusController.ts @@ -1492,17 +1492,7 @@ export default class TorusController extends BaseController { if (req.params?.messageOnly) { - // fix for inconsistent account serialization - // let signature: Uint8Array; - // if (this.origin === "https://www.fractal.is") { - // const msgObj = VersionedMessage.deserialize(msg as unknown as Uint8Array); - // const tx = new VersionedTransaction(msgObj); - // const targetMessage = tx.serialize(); - // signature = this.keyringController.signMessage(targetMessage, this.selectedAddress); - // } else { const signature = this.keyringController.signMessage(Buffer.from(msg as string, "hex"), this.selectedAddress); - // } - // const signature = this.keyringController.signMessage(Buffer.from(msg, "hex"), this.selectedAddress); return JSON.stringify({ publicKey: this.selectedAddress, signature: Buffer.from(signature).toString("hex") }); } @@ -1528,28 +1518,6 @@ export default class TorusController extends BaseController