From ecad5134b8edd8031d7e8832433f87f1c7e7df57 Mon Sep 17 00:00:00 2001 From: Ian Macalinao <ian@saber.so> Date: Sat, 17 Sep 2022 18:07:43 -0500 Subject: [PATCH] web3.js: remove redundant 'Buffer' from 'Account' class --- 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 3dd26429d2ba7e..c2a4e02fe7e650 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<number>) { + constructor(secretKey?: Uint8Array | Array<number>) { if (secretKey) { const secretKeyBuffer = toBuffer(secretKey); if (secretKey.length !== 64) {