Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Issue using latest truffle migrate #6202

@etherbase404

Description

@etherbase404

Truffle v5.11.5 (core: 5.11.5)
Solidity - 0.8.21 (solc-js)
Node v20.8.0
Web3.js v1.10.0

I am using a geth private node for testing, I can send requests to the node from web3.py without any issues. I am trying to deploy a smart contract on it using truffle but nothing happens.

truffle migrate --network private

Happening:

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Network up to date.

I looked everywhere online and cant find any solution :S

My truffle config:

const HDWalletProvider = require('@truffle/hdwallet-provider');
const mnemonicPhrase = "** ** ** ** ** ** ** ** ** ** ** **"; //I got the mnemonic phrase from MetaMask (First Account - ETH Mainnet)

module.exports = {
  networks: {
     development: {
      host: "127.0.0.1",
      port: "8986",
      network_id: "83711",
     },
     private: {
       provider: () => new HDWalletProvider(mnemonicPhrase, "http://127.0.0.1:8986"),
       network_id: "83711"
     }
  },
  mocha: {
  },
  compilers: {
    solc: {
      version: "0.8.21",
    }
  },
};

My deploy contract migration:

var MyToken = artifacts.require("MyToken");

module.exports = function(deployer) {
  deployer.deploy(MyToken);
};

I checked if anything was deployed on the private chain and it shows nothing..

Expected:

Deploying 'MyToken'
--------------------
> transaction hash:    0x.........
> contract address:    0x........

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions