From 0b010ffe392631a912f0eb06f8c3bb26106b4a31 Mon Sep 17 00:00:00 2001 From: netbonus <151201453+netbonus@users.noreply.github.com> Date: Fri, 2 Aug 2024 11:01:46 -0400 Subject: [PATCH] update getMessageToSign to latest ethers version --- src/ethereum.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ethereum.ts b/src/ethereum.ts index 2778fc63..8ab98f0f 100644 --- a/src/ethereum.ts +++ b/src/ethereum.ts @@ -974,10 +974,10 @@ const ethConvertLegacyToGenericReq = function (req) { // slightly different APIs around this. if (req.type) { // Newer transaction types - return tx.getMessageToSign(false); + return tx.getMessageToSign(); } else { // Legacy transaction type - return Buffer.from(RLP.encode(tx.getMessageToSign(false))); + return Buffer.from(RLP.encode(tx.getMessageToSign())); } };