Code Monkey home page Code Monkey logo

Comments (5)

BogdanHabic avatar BogdanHabic commented on August 16, 2024 1

Hey @niccolopetti, thanks for the report! By looking at the logs, it seems that you might be passing the port as an env variable to one of the networks (not matic_mumbai).

Can you please check if that is true and wrap the port with Number() and try again?

from tenderly-cli.

niccolopetti avatar niccolopetti commented on August 16, 2024 1

Thanls @BogdanHabic that solved my issue!

from tenderly-cli.

BogdanHabic avatar BogdanHabic commented on August 16, 2024

Hey @stoplion!

Can you please run tenderly push --debug --output json and paste the output here?

from tenderly-cli.

niccolopetti avatar niccolopetti commented on August 16, 2024

Hey I am facing the same issue,
this is the output I get

niccolo@VivobookPro:/media/niccolo/DATA/oracle/onchain$ tenderly push --networks matic_mumbai --debug --output json
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/push.go:45","func":"github.com/tenderly/tenderly-cli/commands.glob..func9","level":"info","msg":"Setting up your project...","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:271","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying OpenZeppelin config path: networks.js","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:287","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"couldn't read new OpenzeppelinConfig config file","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:289","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying buidler config path: buidler.config.js","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:310","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"couldn't read new Buidler config file","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:312","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying hardhat config path: hardhat.config.js","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:333","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying hardhat ts config path: hardhat.config.ts","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:354","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying truffle config path: truffle-config.js","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/push.go:62","func":"github.com/tenderly/tenderly-cli/commands.uploadContracts","level":"info","msg":"Analyzing Truffle configuration...","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/truffle/config.go:21","func":"github.com/tenderly/tenderly-cli/truffle.(*DeploymentProvider).GetConfig","level":"debug","msg":"Trying truffle config path: /media/niccolo/DATA/oracle/onchain/truffle-config.js","time":"2021-04-05T23:27:14+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/truffle/config.go:68","func":"github.com/tenderly/tenderly-cli/truffle.(*DeploymentProvider).GetConfig","level":"debug","msg":"failed unmarshaling config: json: cannot unmarshal string into Go struct field NetworkConfig.networks.port of type int","time":"2021-04-05T23:27:15+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/userError/userError.go:44","func":"github.com/tenderly/tenderly-cli/userError.LogErrorf","level":"debug","msg":"unable to upload contracts: unable to fetch config: cannot read truffle-config.js","time":"2021-04-05T23:27:15+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/userError/userError.go:45","func":"github.com/tenderly/tenderly-cli/userError.LogErrorf","level":"error","msg":"Couldn't read Truffle config file","time":"2021-04-05T23:27:15+02:00"}
niccolo@VivobookPro:/media/niccolo/DATA/oracle/onchain$ tenderly push --networks matic_mumbai --debug --output json>a.txt
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/push.go:45","func":"github.com/tenderly/tenderly-cli/commands.glob..func9","level":"info","msg":"Setting up your project...","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:271","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying OpenZeppelin config path: networks.js","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:287","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"couldn't read new OpenzeppelinConfig config file","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:289","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying buidler config path: buidler.config.js","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:310","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"couldn't read new Buidler config file","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:312","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying hardhat config path: hardhat.config.js","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:333","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying hardhat ts config path: hardhat.config.ts","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/util.go:354","func":"github.com/tenderly/tenderly-cli/commands.initProvider","level":"debug","msg":"Trying truffle config path: truffle-config.js","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/commands/push.go:62","func":"github.com/tenderly/tenderly-cli/commands.uploadContracts","level":"info","msg":"Analyzing Truffle configuration...","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/truffle/config.go:21","func":"github.com/tenderly/tenderly-cli/truffle.(*DeploymentProvider).GetConfig","level":"debug","msg":"Trying truffle config path: /media/niccolo/DATA/oracle/onchain/truffle-config.js","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/truffle/config.go:68","func":"github.com/tenderly/tenderly-cli/truffle.(*DeploymentProvider).GetConfig","level":"debug","msg":"failed unmarshaling config: json: cannot unmarshal string into Go struct field NetworkConfig.networks.port of type int","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/userError/userError.go:44","func":"github.com/tenderly/tenderly-cli/userError.LogErrorf","level":"debug","msg":"unable to upload contracts: unable to fetch config: cannot read truffle-config.js","time":"2021-04-05T23:28:21+02:00"}
{"file":"/go/src/github.com/tenderly/tenderly-cli/userError/userError.go:45","func":"github.com/tenderly/tenderly-cli/userError.LogErrorf","level":"error","msg":"Couldn't read Truffle config file","time":"2021-04-05T23:28:21+02:00"}

from tenderly-cli.

niccolopetti avatar niccolopetti commented on August 16, 2024

if it may be useful, here is the matic_mumbai network from truffle-config.js

matic_mumbai: {
    provider: () => new HDWalletProvider({
      mnemonic: {
        phrase: process.env.MNEMONIC
      },
      providerOrUrl: `https://rpc-mumbai.matic.today`,
    }),
    network_id: '80001', 
    timeoutBlocks: 200,
    confirmations: 1,
    production: false,     
    gas: process.env.GAS,
    gasPrice: process.env.GAS_PRICE
}

from tenderly-cli.

Related Issues (20)

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.