File tree Expand file tree Collapse file tree
lib/swapper/swappers/utils/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export const getFeesFromFeeData = async ({
6666type BuildAndBroadcastArgs = GetFeesFromFeeDataArgs & {
6767 accountNumber : number
6868 adapter : EvmChainAdapter
69- data ? : string
69+ data : string
7070 to : string
7171 value : string
7272}
@@ -85,7 +85,7 @@ export const buildAndBroadcast = async ({
8585 to,
8686 accountNumber,
8787 value,
88- data : data ?? '0x' ,
88+ data,
8989 ...( await getFeesFromFeeData ( { wallet, feeData } ) ) ,
9090 } )
9191
Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ type GetFeesFromFeeDataArgs = {
5555type BuildAndBroadcastArgs = GetFeesFromFeeDataArgs & {
5656 accountNumber : number
5757 adapter : EvmChainAdapter
58- data ? : string
58+ data : string
5959 to : string
6060 value : string
6161}
6262
63- type GrantAllowanceArgs = Omit < BuildAndBroadcastArgs , 'value' > & {
63+ type GrantAllowanceArgs = Omit < BuildAndBroadcastArgs , 'data' | ' value'> & {
6464 approvalAmount : string
6565 spender : string
6666 web3 : Web3
@@ -174,7 +174,7 @@ export const buildAndBroadcast = async ({
174174 to,
175175 accountNumber,
176176 value,
177- data : data ?? '0x' ,
177+ data,
178178 ...( await getFeesFromFeeData ( { wallet, feeData } ) ) ,
179179 } )
180180
You can’t perform that action at this time.
0 commit comments