Questions tagged [truffle-deployment]
The truffle-deployment tag has no usage guidance.
183
questions
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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',
...
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 ...
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....
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 ...
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 ...
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')
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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....
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 ...
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
...
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....
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: ...
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...
> ... ...
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' (...
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) {
...
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 '....
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: ...
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?
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 ...
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 ...