Cannot get the transaction error #1738
Unanswered
AwaisTahseencode
asked this question in
Q&A
Replies: 2 comments 6 replies
-
I think, just don't use const basicNft = await ethers.getContract("BasicNft", deployer); with const basicNft = await ethers.getContractAt("BasicNft", nftDeploy.address,deployer) |
Beta Was this translation helpful? Give feedback.
4 replies
-
@AwaisTahseencode why are you using these here? const nftDeploy=await deploy("BasicNft",{
from:deployer,
args:[],
log:true,
waitConfirmations:1,
})
await nftDeploy.deployed()
const basicNft = await ethers.getContractAt("BasicNft","0x512F7469BcC83089497506b5df64c6E246B39925",deployer) we are testing not deploy here: See the beforeEach for BasicNFT: beforeEach(async () => {
deployer = (await getNamedAccounts()).deployer;
await deployments.fixture(["basicnft"]);
basicNft = await ethers.getContract("BasicNFT", deployer);
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know we can deploy it by .fixtures(["all]) as well as , but why its not deploying like this and i have following error
Beta Was this translation helpful? Give feedback.
All reactions