Skip to content

Reiceiving 0 while deploying Smartcontract on Polygon Mainnet #2234

Answered by krakxn
LordReya asked this question in Q&A
Discussion options

You must be logged in to vote

Context—Ways to extract the ContractFactory via hardhat-ethers:

function getContractFactory(name: string, signer?: ethers.Signer): Promise<ethers.ContractFactory>;

function getContractFactory(name: string, factoryOptions: FactoryOptions): Promise<ethers.ContractFactory>;

function getContractFactory(abi: any[], bytecode: ethers.utils.BytesLike, signer?: ethers.Signer): Promise<ethers.ContractFactory>;

I would recommend using any of the above to your liking to get the ContractFactory of Flashloan

As much as I can see, Flashloan__factory is undefined. That is precisely the error.

You can then use that ContractFactory to deploy the contract.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@LordReya
Comment options

@LordReya
Comment options

@krakxn
Comment options

Answer selected by LordReya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants