From 9682c847647b909287e25ce728dbe4d2e17a8124 Mon Sep 17 00:00:00 2001 From: Lukas Rosario <36800180+lukasrosario@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:58:14 -0500 Subject: [PATCH] omit value from l1 actions --- src/actions/public/L1/simulateDepositETH.ts | 17 +++++++++------- src/actions/wallet/L1/writeDepositETH.ts | 17 +++++++++------- .../wallet/L1/writeDepositTransaction.ts | 20 ++++++++++--------- 3 files changed, 31 insertions(+), 23 deletions(-) diff --git a/src/actions/public/L1/simulateDepositETH.ts b/src/actions/public/L1/simulateDepositETH.ts index d32855a..d43fc4d 100644 --- a/src/actions/public/L1/simulateDepositETH.ts +++ b/src/actions/public/L1/simulateDepositETH.ts @@ -20,13 +20,16 @@ export type SimulateDepositETHParameters< _chainId = TChain extends Chain ? TChain['id'] : number, > = & { args: DepositETHParameters; portal: RawOrContractAddress<_chainId> } - & L1SimulateActionBaseType< - typeof ABI, - typeof FUNCTION, - ContractFunctionArgs, - TChain, - TChainOverride, - TAccountOverride + & Omit< + L1SimulateActionBaseType< + typeof ABI, + typeof FUNCTION, + ContractFunctionArgs, + TChain, + TChainOverride, + TAccountOverride + >, + 'value' > export type SimulateDepositETHReturnType< diff --git a/src/actions/wallet/L1/writeDepositETH.ts b/src/actions/wallet/L1/writeDepositETH.ts index f4a8f8e..be18e53 100644 --- a/src/actions/wallet/L1/writeDepositETH.ts +++ b/src/actions/wallet/L1/writeDepositETH.ts @@ -15,13 +15,16 @@ export type WriteDepositETHParameters< _chainId = TChain extends Chain ? TChain['id'] : number, > = & { args: DepositETHParameters; portal: RawOrContractAddress<_chainId> } - & L1WriteActionBaseType< - typeof ABI, - typeof FUNCTION, - ContractFunctionArgs, - TChain, - TAccount, - TChainOverride + & Omit< + L1WriteActionBaseType< + typeof ABI, + typeof FUNCTION, + ContractFunctionArgs, + TChain, + TAccount, + TChainOverride + >, + 'value' > /** diff --git a/src/actions/wallet/L1/writeDepositTransaction.ts b/src/actions/wallet/L1/writeDepositTransaction.ts index b72fb69..13ee340 100644 --- a/src/actions/wallet/L1/writeDepositTransaction.ts +++ b/src/actions/wallet/L1/writeDepositTransaction.ts @@ -30,16 +30,18 @@ export type WriteDepositTransactionParameters< TChain extends Chain | undefined = Chain, TAccount extends Account | undefined = Account | undefined, TChainOverride extends Chain | undefined = Chain | undefined, -> // _chainId = TChain extends Chain ? TChain['id'] : number, - = +> = & { args: DepositTransactionParameters; portal: RawOrContractAddress } - & L1WriteActionBaseType< - typeof ABI, - typeof FUNCTION, - ContractFunctionArgs, - TChain, - TAccount, - TChainOverride + & Omit< + L1WriteActionBaseType< + typeof ABI, + typeof FUNCTION, + ContractFunctionArgs, + TChain, + TAccount, + TChainOverride + >, + 'value' > /**