Questions tagged [truffle-deployment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
5 answers
2k views

Unhandled promise rejection(gas limit) when deploying Contract to rinkeby using truffle-hdwallet-provider

I am trying to Deploy a beginners contract onto the rinkeby test network through Infura node. It is throwing the following error. (node:35183) UnhandledPromiseRejectionWarning: Unhandled promise ...
Finn Rothacker's user avatar
9 votes
3 answers
13k views

What is use of HDWalletProvider in Truffle config?

The sample code here for deploying to Ropsten used HDWalletProvider and a mnemonic in the configuration, but I am not sure I understand its purpose. Is this just telling it the account that will ...
Robin Jayaswal's user avatar
0 votes
2 answers
836 views

How to access Truffle deployed contracts with app's javascript code?

I have some smart contracts deployed with Truffle on the local Ganache network, but I don't know how to access it with the app's javascript in order to make function calls to the contract. How would I ...
Rychard's user avatar
  • 15
1 vote
0 answers
586 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....
Shoaib Iqbal's user avatar
5 votes
1 answer
1k views

Using truffle migrations for seeding lots of data inside a smart contract?

I have been developing a smart contract (ERC-721 compliant) which needs to be populated with lots of various pieces of data. Approximately 300 ERC721 tokens need to be minted inside the contract at ...
Jimbob1987's user avatar
6 votes
1 answer
975 views

Best practice for sharing truffle build files between developers

I am working on a few projects using truffle, as you know truffle compiles and migrates contracts to various ethereum networks e.g. MyContract.sol produces MyContract.json which contains a reference ...
Jimbob1987's user avatar
4 votes
1 answer
3k views

Is it OK to use the reset flag with every Truffle compile and migrate when using the TestRPC client?

I just spent a fair amount of time scratching my head trying to figure out why my truffle migration wasn't doing anything when trying to deploy to the TestRPC client. It just kept saying "using ...
Robert Oschler's user avatar
1 vote
1 answer
593 views

Error: The contract code couldn't be stored, please check your gas amount or exceed gas limit

I keep getting the error please check your gas amount or exceed gas limit. The truffle config file module.exports = { networks: { development: { host: 'localhost', ...
Ajain Vivek's user avatar
1 vote
1 answer
94 views

Trouble deploying Ethereum contract to live network (Truffle)

When trying to deploy to the Ethereum main net I am getting the error: Deploying Migrations... ... undefined Error encountered, bailing. Network state unknown. Review successful ...
connorvo's user avatar
  • 201
0 votes
1 answer
668 views

"instance.at(addr) is not a function" in truffle console (access to non-migrated contracts)

I have a setup with one contract that is a singleton and is migrated to e.g. a testnet through the truffle console. This contract "creates" new contracts, which I want to access in the truffle console....
mesqueeb's user avatar
  • 545
2 votes
2 answers
5k views

How to get a deployed contract instance in truffle console that was deployed without a migration?

I have a contract deployed with truffle to a testrpc local testnet. This contract has has a function that deploys a new contract. This new contract I can check the address in the testrpc console ...
mesqueeb's user avatar
  • 545
5 votes
1 answer
2k views

Contract deployed successfully to Ganache via Truffle, fails to deploy on live network

I basically followed this Zeppelin crowdsale tutorial, just changed the names of the contracts. I was able to successfully deploy on a local Ganache, but then when trying to deploy to the live ...
shaharsol's user avatar
  • 529
1 vote
1 answer
160 views

Unable to deploy contract on ropsten

Firstly I installed geth and it's running I created an account and verified keystore file in the location: ~/Library/ethereum/testnet/keystore Then I used: Web3.personal.newAccount('password') ...
Rakesh 's user avatar
  • 103
2 votes
1 answer
977 views

Deploying smart contracts with truffle and geth in windows

I'm trying to deploy a contract. When running: truffle.cmd migrate network --ropsten I get the following error: No network specified. Cannot determine current network. Please help! Details are ...
CryptoQueen's user avatar
1 vote
1 answer
387 views

Gas limit being reached when deploying

I currently have a contract which requires around 16M gas to deploy and execute. Trying to deploy using Parity on Kovan net fails due to gas limit being reached. On my private network I just ...
spacemonkey's user avatar
0 votes
2 answers
323 views

unable to deploy contract on ropston testnet

I am trying to deploy contract on ropston testnet. I have created an account through truffle console and got three test ethers from https://faucet.bitfwd.xyz/. I have confirmed that my account has ...
Shoaib Iqbal's user avatar
1 vote
3 answers
2k views

How to deploy a truffle app in heroku?

I have working truffle app that interacts with Ropsten Testnet but currently, I'm on my local machine environment at localhost:3000. I want to deploy this app to heroku such that my ropsten testnet ...
Pramesh Bajracharya's user avatar
0 votes
2 answers
435 views

How to communicate with a deployed token?

Using Truffle, I am trying to deploy the following contract: pragma solidity ^0.4.13; contract ERC20Events { event Approval(address indexed src, address indexed guy, uint wad); event ...
Swader's user avatar
  • 126
3 votes
1 answer
2k views

Contract has not been deployed to detected network

I ran truffle compile and truffle migrate to deploy my contract: admin@admin-PC ~/Desktop/Coding Projects/truffleTestProject (master) $ truffle migrate Using network 'development'. Running ...
Carol.Kar's user avatar
  • 130
0 votes
1 answer
476 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. ...
Ram's user avatar
  • 1
2 votes
0 answers
676 views

Truffle delpoyment Error: unknown account

i am trying to deploy my smart contract on live network, i have successfully deployed the same contract on rinkeby but facing error while on live network, here is the detail 1 - Account balance 0....
Inzmam ul Hassan's user avatar
3 votes
3 answers
1k views

Truffle deploying without linking

I'm deploying two contracts, one of which depends on another, plus they depend on a number of other contracts via the import statements. However, although in my deployment script I haven't included ...
ulu's user avatar
  • 740
4 votes
1 answer
1k views

Deploying on contract on main net - Error: insufficient funds for gas * price + value

Running geth v 1.7.3 truffle 4.0.5 truffle-config.js module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*" // Match any network id ...
Michael O'Rourke's user avatar
0 votes
1 answer
1k views

Testing the fallback function with Truffle

I have the following fallback function: uint public success; function() public payable { success = 111; } I'm testing it with Truffle using this code: beforeEach(async () => { this....
ulu's user avatar
  • 740
3 votes
1 answer
2k views

How Can I Get the Gas Cost of Contract Creation *within* Truffle (Migrations/Test)

When running truffle migrate or truffle test, how can I get the gas usage (for example, see below the log from testrpc)? Transaction: ...
carlolm's user avatar
  • 2,316
0 votes
1 answer
453 views

(node:207476) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):

Here is where error appears: > Using network 'ropsten'. > > Running migration: 1_initial_migration.js Deploying Migrations... > ... ...
G.T.'s user avatar
  • 51
29 votes
5 answers
22k views

What is the real price of deploying a contract on the Mainnet?

I'm trying to deploy a contract on the mainnet, but I've been getting some issues deploying with Truffle. ➜ ballot git:(master) ✗ truffle migrate --network mainnet --dry-run Using network 'mainnet' (...
V. Kartoplya's user avatar
0 votes
1 answer
622 views

Truffle Deploy Doesn't Work [duplicate]

2_deploy_contracts.js var Regulator = artifacts.require("./Regulator.sol"); var TollBoothOperator = artifacts.require("./TollBoothOperator.sol"); module.exports = function(deployer) { ...
Karan Kurbur's user avatar
0 votes
1 answer
913 views

Deploy contract with dependencies

I am working with Truffle on a payroll smart contract that handles payments, employee addresses, etc. Right now my structure looks something like this: Payroll.sol pragma solidity ^0.4.19; import '....
ApollyoN's user avatar
4 votes
0 answers
818 views

Truffle migrate Error Invalid number of arguments to Solidity function

Truffle 4.0.1 I've got a contract declared "is Pausable" (OpenZeppelin framework) and I want to pause it as part of the deployment logic. I'm getting an error, however, when invoking pause() Error: ...
sofend's user avatar
  • 241
0 votes
3 answers
296 views

Problem with truffle deployment in ropsten

I followed tutorial and add result this tutorial on git When I trying deploy my contract via command: truffle migrate --network ropsten I have error: How fix this gub?
Stepan Poperechnyi's user avatar
0 votes
1 answer
781 views

How fast can I deploy to Ropsten?

Does anyone know how fast I can deploy to the Ropsten network? I am using the following command: truffle migrate --network ropsten and I have an instance of geth running. In the geth console, when ...
chuacw's user avatar
  • 296
11 votes
1 answer
4k views

Truffle migrate vs Truffle deploy

Is there any difference between truffle migrate and truffle deploy, as of now what I observed is both the command perform deployment on desired networks one recognizable difference which we can see ...
SwapnilKumbhar's user avatar

1 2 3
4