Questions tagged [truffle-config]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
36 views

Simple Truffle tests timeout “before all” hook: prepare suite

I'm trying to write my first tests for truffle, but I run in a timeout each time I want to execute the tests. Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is ...
0
votes
1answer
42 views

Deploy smart contract on Ropsten with Truffle without truffle-hdwallet-provider

Here is my truffle-config.js networks: { ropsten: { network_id: 3, host: '127.0.0.1', port: 8545, gas: 4000000, from: "address_in_metamask" }, I ran a geth node using the command: geth --...
2
votes
1answer
18 views

Truffle: provide a different config file name via the CLI?

I've read through the Truffle docs on configuration, but I haven't found the option of providing a different file name other than truffle-config.js or truffle.js. In my case, I need multiple files ...
0
votes
1answer
228 views

Can I edit genesis.json file of ganache

I want to configure ganache for using proof of authorisation consensus mechanism instead of using proof of work. I want to edit genesis.json file for the same. I want to know where ganache stores its ...
1
vote
0answers
277 views

Error: authentication needed: password or unlock when deploying a contract with truffle

i am using angular with truffle. I am trying to deploy a contract through truffle migrate. here is my 2_deploy_contracts.js var contractFacotry = artifacts.require('./contractFactory.sol'); module....
3
votes
2answers
2k views

What should be the gas and gasPrice for Ropsten Network in Truffle Config?

I just want to test my smart contract to be deployed in the Ropsten network, and I'm still puzzled on what should I put for the gas and gasPrice in the Truffle config. Thoughts about this? ropsten: { ...
5
votes
3answers
1k views

How to change settings for truffle develop?

I'm trying to change the settings for my truffle develop node, but the values in truffle.js don't seem to work. Here's what I have there: networks: { development: { host: "127.0.0.10", ...
21
votes
5answers
6k views

Truffle configuration file name - is it 'truffle.js' or 'truffle-config.js'?

Truffle configuration file is mentioned in several places on the web (GitHub, truffle package on npm, solidity-coverage package on npm, etc.). Some refer to it as 'truffle.js, others refer to it as ...
0
votes
1answer
776 views

installed truffle but cannot run commands on commandline [duplicate]

followed up from previous post I installed truffle however this is what I get PS C:\Users\user> npm install -g truffle C:\Users\user\AppData\Roaming\npm\truffle -> C:\Users\user\AppData\Roaming\...
0
votes
1answer
291 views

How can i connect external AWS server's truffle in browser?

I have deployed geth, truffle, testrpc whichever needed in live AWS server. All the configurations are working properly. I have initiated 'truffle develop' and 'npm run dev'. Both are working fine. ...
0
votes
1answer
375 views

Run automated tests against `truffle develop` client?

So when I start truffle develop in my MacBook Pro it starts listening on port 9545 (even though I don't have any mention of this port in truffle.js...): $ truffle develop Truffle Develop started at ...
2
votes
1answer
794 views

Issue in truffle migration with Quorum

I am following this tutorial http://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains for Quorum installation.. I have successfully installed vargrant(Installed ...
1
vote
1answer
355 views

Change gas amount in Truffle 4

In Truffle 4, I am performing the migration in truffle develop by using the migrate command in the console. However it gives the error Error: The contract code couldn't be stored, please check your ...
1
vote
1answer
406 views

Run “truffle test” command with auto set custom balances

I know how to set custom balance accounts on testrpc. It could be like $ testrpc --account="0x627306090abab3a6e1400e9345bc60c78a8bef57,100000000000000000000". But I don't figure out how to do that ...
0
votes
0answers
182 views

Why does truffle console not start?

Trying to follow the tutorial on Medium, I would like to open the truffle console (Ubuntu 16.04). I get the following output: mzh@021-voting $ truffle console Error: Invalid JSON RPC response: "" ...
0
votes
1answer
410 views

How do I tell what account for Truffle to use when testing contracts?

I'm using Truffle together with Parity to test contracts. How do I tell truffle what account to use with Parity when testing contracts? I have a total of 3 accounts in Parity currently. The command ...
2
votes
1answer
490 views

Truffle work over HTTPS

I installed my own ethereum node and put it behind HTTPS nginx proxy. geth attach works perfectly but truffle deploy failed with error: <html> <head><title>400 The plain HTTP ...
4
votes
1answer
306 views

How do I get configuration variables (such as gasPrice) in a truffle test?

I learned from this answer that truffle configures gasPrice in truffle.js, defaulting to 100000000000. I'd like to use gasPrice in a test, without hardcoding the raw number. Is there any way to ...
3
votes
1answer
4k views

Truffle mingration: Error: authentication needed: password or unlock

I deploying contract using Truffle and got an error Error: authentication needed: password or unlock. I already checked related questons and found only ugly hacks like "unlock desired account directly ...
8
votes
3answers
2k views

How to set the timeout for truffle test's before block?

I'm running my tests on a private chain and some of them times out: 1) "before all" hook: Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning ...
1
vote
1answer
1k views

Cannot run truffle behind proxy? [duplicate]

I've installed truffle and related software on my office PC. I've set the proxy server for node.js. The truffle init got the following error. Is it proxy issue? H:\work\eth> truffle.cmd init ...
26
votes
12answers
22k views

How to upgrade solidity compiler in truffle

I couldn't find a way to upgrade a version of truffle solidity compiler. Also curious how to see that information for deployed contracts in truffle console
7
votes
1answer
3k views

How to choose an account to deploy a contract in truffle

How do you select an account to deploy a contract using: 1)Metamask 2)Parity 3)some config file
5
votes
1answer
2k views

How to deploy truffle contracts to Rinkebey?

What are the parameters that I have to specify to be able to deploy solidity contracts using Truffle in the config file? I am using Metamask to store test ether and have a unique mnemonic to define ...
1
vote
0answers
164 views

Using solc with Truffle

As per the title, I haven't found anywhere (neither in Truffle Docs nor googling) how to use solc with Truffle (I am on Ubuntu 16.04). For example, let's say I wanna use new require and assert ...
8
votes
3answers
2k views

Truffle migration stuck

I am trying to migrate contract on a block chain network created using azure ethereum consortium blockchain, But when I am running the command Truffle migrate it stuck at PS D:\sl\BCSLAC\bcdemo\sol&...
3
votes
2answers
1k views

Truffle on Windows 10: how to unlock an account for migration to a private network

I try to migrate a smart contract to a private network via truffle on Windows 10. I specify a certain account in truffle.js and so far I get the following error: Error encountered, bailing. Network ...
10
votes
3answers
5k views

Truffle invalid address

With Truffle 3.0 when I call one of my contract's function, in console I have this error: Uncaught (in promise) Error: invalid address I found this workaround, and in my code I try this with no ...