We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740c515 commit 8433ccdCopy full SHA for 8433ccd
hardhat/scripts/deploy.js
@@ -5,7 +5,15 @@ async function main() {
5
const Token = await ethers.getContractFactory("Token");
6
const token = await Token.deploy();
7
8
- console.log("Deploy transaction hash:", token.deployTransaction.hash);
+ // Log the token object to inspect its properties
9
+ console.log("Token object:", token);
10
+
11
+ if (token.deployTransaction) {
12
+ console.log("Deploy transaction hash:", token.deployTransaction.hash);
13
+ } else {
14
+ console.error("Deploy transaction is undefined");
15
+ }
16
17
await token.deployed();
18
19
console.log("Token deployed to:", token.address);
0 commit comments