File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
packages/contracts-sdk/src/lib Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -344,26 +344,26 @@ export class LitContracts {
344344 return contractData ;
345345 }
346346
347- public static async callContract <
347+ public static async callLitContract <
348348 LitAbi extends Abi ,
349349 LitFunction extends ExtractAbiFunctionNames < LitAbi > ,
350350 LitAbiFunction extends AbiFunction = ExtractAbiFunction < LitAbi , LitFunction >
351- > ( config : {
352- abi : LitAbi ;
353- address : string ;
354- functionName : LitFunction ;
355- args : AbiParametersToPrimitiveTypes < LitAbiFunction [ 'inputs' ] , 'inputs' > ;
356- signerOrProvider : ethers . Signer | ethers . providers . JsonRpcProvider ;
357- } ) : Promise <
351+ > (
352+ abi : LitAbi ,
353+ address : string ,
354+ functionName : LitFunction ,
355+ args : AbiParametersToPrimitiveTypes < LitAbiFunction [ 'inputs' ] , 'inputs' > ,
356+ signerOrProvider : ethers . Signer | ethers . providers . JsonRpcProvider
357+ ) : Promise <
358358 AbiParametersToPrimitiveTypes < LitAbiFunction [ 'outputs' ] , 'outputs' >
359359 > {
360360 const contract = new ethers . Contract (
361- config . address ,
362- config . abi as ethers . ContractInterface ,
363- config . signerOrProvider
361+ address ,
362+ abi as ethers . ContractInterface ,
363+ signerOrProvider
364364 ) ;
365365
366- return contract [ config . functionName ] ( ... config . args ) as Promise <
366+ return contract [ functionName ] ( ...args ) as Promise <
367367 AbiParametersToPrimitiveTypes < LitAbiFunction [ 'outputs' ] , 'outputs' >
368368 > ;
369369 }
You can’t perform that action at this time.
0 commit comments