Skip to content
Discussion options

You must be logged in to vote

I solved it by looking into the actual getContract function and by importing the GetContractArgs type as follows

import { GetContractArgs, getContract } from '@wagmi/core';
.
.
.
contractAddress: string = '0x134...';
abi: ContractInterface = [{"type":"constructor","payable":false,"inputs":[{ .... ..... .... ;

  async ngOnInit() {
.
.
.
let getContractInput: GetContractArgs = {addressOrName: this.contractAddress, contractInterface: this.abi};
.
.
}```

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by achimstruve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant