Skip to content

Commit

Permalink
update getMessageToSign to latest ethers version
Browse files Browse the repository at this point in the history
  • Loading branch information
netbonus committed Aug 2, 2024
1 parent 900d226 commit 0b010ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
};

Expand Down

0 comments on commit 0b010ff

Please sign in to comment.