chore: remove redundant 'Buffer' from 'Account' class (#27865)
This commit is contained in:
parent
0e70275b07
commit
f53aa5f12b
|
@ -23,7 +23,7 @@ export class Account {
|
||||||
*
|
*
|
||||||
* @param secretKey Secret key for the account
|
* @param secretKey Secret key for the account
|
||||||
*/
|
*/
|
||||||
constructor(secretKey?: Buffer | Uint8Array | Array<number>) {
|
constructor(secretKey?: Uint8Array | Array<number>) {
|
||||||
if (secretKey) {
|
if (secretKey) {
|
||||||
const secretKeyBuffer = toBuffer(secretKey);
|
const secretKeyBuffer = toBuffer(secretKey);
|
||||||
if (secretKey.length !== 64) {
|
if (secretKey.length !== 64) {
|
||||||
|
|
Loading…
Reference in New Issue