Giter Club home page Giter Club logo

Comments (5)

mjtpena avatar mjtpena commented on July 19, 2024 1

Current workaround is to do a:
truffle init

and make sure you don't overwrite the contract and test folders.

from erc-1155.

puaka17 avatar puaka17 commented on July 19, 2024

GOoGLE AKAUN

from erc-1155.

puaka17 avatar puaka17 commented on July 19, 2024
  • [thegabelk ]

from erc-1155.

gruvin avatar gruvin commented on July 19, 2024

It would appear that /truffle-config.js is did not make it to the repo
Workaround:

mkdir tmp && cd tmp && truffle init

Use the resulting truffle-cofig.js example file as a starting point for your specific needs.

Example ...

const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();

module.exports = {
    networks: {
        ropsten: {
            provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/YOUR-PROJECT-ID`),
            network_id: 3,       // Ropsten's id
            gas: 5500000,        // Ropsten has a lower block limit than mainnet
            confirmations: 2,    // # of confs to wait between deployments. (default: 0)
            timeoutBlocks: 200,  // # of blocks before a deployment times out  (minimum/default: 50)
            skipDryRun: true     // Skip dry run before migrations? (default: false for public nets )
        },
    },

    // Set default mocha options here, use special reporters etc.
    mocha: {
        // timeout: 100000
    },

    // Configure your compilers
    compilers: {
        solc: {
            version: "0.5.8",    // Fetch exact version from solc-bin (default: truffle's version)
            settings: {          // See the solidity docs for advice about optimization and evmVersion
                optimizer: {
                    enabled: false,
                    runs: 200
                }
            }
        }
    }
}

... replacing YOUR-PROJECT-ID with your Infura (in this example) project ID

Then ...

cd erc-1155
# nvm use 12 # we need NodeJS >= 12 for ES module support
npm install
npm install @truffle/hdwallet-provider
echo 'grunt venture follow rhythm gun myth topple man hollow armed clap shoved' > .secret
truffle migrate --network ropsten
truffle test --ropsten

... replacing grunt venture follow... with the test word mnemonic for your test Ropsten testnet wallet, having sufficient funds in account[1] (not #0) for contract deployment. (user1=accounts[1] in ./test/*.js code)

from erc-1155.

riman002 avatar riman002 commented on July 19, 2024

hey guys recently i have started with truffle framework i was trying the truffle unbox package but when i try to run the develop console in it it throws an error

`Error: The specified module could not be found.
Falling back to a NodeJS implementation; performance may be degraded.

Could not find suitable configuration file.
Truffle v5.7.2 (core: 5.7.2)
Node v16.17.0`
a help would have made my day.

from erc-1155.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.