diff --git a/src/signer.ts b/src/signer.ts index c3881b2..f8b26dc 100644 --- a/src/signer.ts +++ b/src/signer.ts @@ -1316,6 +1316,30 @@ export class L1Signer extends AdapterL1(ethers.JsonRpcSigner) { return super.finalizeWithdrawalParams(withdrawalHash, index); } + /** + * @inheritDoc + * + * @example + * + * import { Provider, L1Signer, types } from "zksync-ethers"; + * import { ethers } from "ethers"; + * + * const browserProvider = new ethers.BrowserProvider(window.ethereum); + * const signer = L1Signer.from( + * await browserProvider.getSigner(), + * Provider.getDefaultProvider(types.Network.Sepolia) + * ); + * + * const WITHDRAWAL_HASH = ""; + * const params = await signer.getFinalizeWithdrawalParams(WITHDRAWAL_HASH); + */ + override async getFinalizeWithdrawalParams( + withdrawalHash: BytesLike, + index = 0 + ): Promise { + return super.getFinalizeWithdrawalParams(withdrawalHash, index); + } + /** * @inheritDoc *