From f53aa5f12bee5a21d7ef48efac44bae436c2685f Mon Sep 17 00:00:00 2001 From: Ian Macalinao Date: Tue, 29 Nov 2022 01:42:58 -0600 Subject: [PATCH] chore: remove redundant 'Buffer' from 'Account' class (#27865) --- web3.js/src/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3.js/src/account.ts b/web3.js/src/account.ts index 3dd26429d2..c2a4e02fe7 100644 --- a/web3.js/src/account.ts +++ b/web3.js/src/account.ts @@ -23,7 +23,7 @@ export class Account { * * @param secretKey Secret key for the account */ - constructor(secretKey?: Buffer | Uint8Array | Array) { + constructor(secretKey?: Uint8Array | Array) { if (secretKey) { const secretKeyBuffer = toBuffer(secretKey); if (secretKey.length !== 64) {