Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IgnitionError: IGN1 #5497

Closed
Abhishekkochar opened this issue Jul 9, 2024 · 2 comments
Closed

IgnitionError: IGN1 #5497

Abhishekkochar opened this issue Jul 9, 2024 · 2 comments
Assignees
Labels
status:needs-more-info There's not enough information to start working on this issue

Comments

@Abhishekkochar
Copy link

Abhishekkochar commented Jul 9, 2024

Encountering the below error when trying to run the following code:

import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";

const NFTModule = buildModule("Doodle", (m) => {
  const _name = m.getParameter("_name", "Doodle");
  const _symbol = m.getParameter("_symbol", "DD");
  const _oracle = m.getParameter("_oracle", 0xA2F78ab2355fe2f984D808B5CeE7FD0A93D5270E); // USDC/USD - Seploia testnet price oracle
  
  const _tokenAddress = m.getParameter("_tokenAddress", 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); // USDC - Seploia testnet

  const doodleNft = m.contract("Doodle", [_name, _symbol, _oracle, _tokenAddress]);

  return { doodleNft };
});

export default NFTModule;

Error when running npx hardhat ignition deploy ./ignition/modules/Doodle.ts --network sepolia --verify
Screenshot 2024-07-09 at 2 31 43 PM

Solidity code:

 constructor(string memory _name, string memory _symbol, address _oracle, address _tokenAddress) ERC721(_name, _symbol){
        oracle = IOracle(_oracle);
        supportedToken = IERC20(_tokenAddress);
    }

@kanej
Copy link
Member

kanej commented Jul 9, 2024

I would express the addresses as strings:

"0xA2F78ab2355fe2f984D808B5CeE7FD0A93D5270E"

Does the deployment fail on first run?
Does the deployment fail when run against the in-memory Hardhat node?

@kanej kanej added status:needs-more-info There's not enough information to start working on this issue and removed status:triaging labels Jul 9, 2024
@kanej kanej closed this as completed Jul 22, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in Hardhat Jul 22, 2024
@Abhishekkochar
Copy link
Author

I would express the addresses as strings:

"0xA2F78ab2355fe2f984D808B5CeE7FD0A93D5270E"

Does the deployment fail on first run? Does the deployment fail when run against the in-memory Hardhat node?

Deployment succeeds when running on local node. I had to delete the deployment copy to have this work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:needs-more-info There's not enough information to start working on this issue
Projects
Archived in project
Development

No branches or pull requests

2 participants