Comments (5)
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.
Thanls @BogdanHabic that solved my issue!
from tenderly-cli.
Hey @stoplion!
Can you please run tenderly push --debug --output json
and paste the output here?
from tenderly-cli.
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.
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)
- tenderly completion zsh generates invalid script
- Devnet creation pipes standard output to stderr
- My 1st devnet app
- Raddness87
- Can you please help me out with this I am Lost and about to have a nervous breakdown
- How to verify smart contracts with Tenderly CLI from within a foundry project? HOT 5
- Couldn't read Hardhat build files at: deployments when trying to push contracts to tenderly HOT 1
- Couldn't find `./build/main.json` in `protostar.toml::[contracts]` HOT 2
- How to delete a verification or set it private after the fact? HOT 1
- Arrow keys don't work in 1.6.2 Windows amd64 build HOT 2
- O
- https://open.substack.com/pub/dungfookei?utm_source=share&utm_medium=android&r=37anmz
- curl https://mainnet.gateway.tenderly.co/1aw4Lgs15sqM7sl3gvG8Cu \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":0,"method":"tenderly_simulateTransaction","params":[{"from":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","to":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","gas":"0x0","gasPrice":"0x0","value":"0x0","data":"0xa9059cbb00000000000000000000000020a5814b73ef3537c6e099a0d45c798f4bd6e1d60000000000000000000000000000000000000000000000000000000000000001"},"latest"]}'
- ..
- 1.
- api.etherscan.io/api?module=contract&action=getabi&address=0x15d4c048f83bd7e37d49ea4c83a07267ec4203da HOT 2
- Windows Terminal
- <p><a href="https://linear.app/walletconnect/issue/CR-11/web3inboxcom">CR-11 web3inbox.com</a></p>
- tenderly virtual forks problem with updating the state
- CI: https://ci.nodejs.org/job/node-test-pull-request/55558/ 💛
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tenderly-cli.