From f17280e7ba10eaffcd067605b00d5a749af80078 Mon Sep 17 00:00:00 2001 From: Electrolux <59329360+electroluxcode@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:12:50 +0800 Subject: [PATCH] Update packages/web3/src/types.ts Co-authored-by: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> --- packages/web3/src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web3/src/types.ts b/packages/web3/src/types.ts index ae97ef614b8..542af9ceab4 100644 --- a/packages/web3/src/types.ts +++ b/packages/web3/src/types.ts @@ -75,9 +75,9 @@ export interface Web3EthInterface extends Eth { accounts: { create: () => Web3Account; privateKeyToAccount: (privateKey: Uint8Array | string) => Web3Account; - privateKeyToAddress: (privateKey: Uint8Array | string) => string; - privateKeyToPublicKey: (privateKey: Uint8Array | string,isCompressed:boolean) => string; - parseAndValidatePrivateKey:(data: Uint8Array | string,ignoreLength?:boolean) => Uint8Array; + privateKeyToAddress: (privateKey: Bytes) => string; + privateKeyToPublicKey: (privateKey: Bytes, isCompressed: boolean) => string; + parseAndValidatePrivateKey:(data: Bytes, ignoreLength?: boolean) => Uint8Array; signTransaction: ( transaction: Transaction, privateKey: Bytes,