Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [truffle-deployment]

The tag has no usage guidance.

0
votes
0answers
14 views

Upgrading to solidity version 0.5.0 getting deployment failed error with same smartcontract perfectly deployed on 0.4.24

The same smart contract is running smoothly in solidity version 0.4.24 but now when I update the solidity version and solving a lot of bugs inside my smart contract I intended to deploy that in ...
0
votes
1answer
15 views

Unable to use call.value to send the ether to another contract

Block Builder! I create a bank and client contracts, in order to reproduce DAO attack event. The client can deposit, but can not withdraw. I enclose the repo from Github here: https://github.com/...
0
votes
1answer
36 views

Can't connect to local blockchain

Using Truffle, I'm trying to implement my first smart contract by running the MetaCoin webpack. After running Truffle Develop, I can see my list of accounts: Truffle Develop started at http://127.0....
4
votes
2answers
98 views

Truffle v5 runs out of gas but Truffle v4 deploys the contract

Truffle v4 used to deploy the contract successfully, but Truffle v5 truffle migrate command fails. My process to deploy: 1) delete buidl/ folder 2) truffle compile 3) truffle migrate Truffle v5 ...
0
votes
1answer
64 views

Error in creating instance of deployed contract using truffle console

I deployed Token and Crowdsale contract in separate migration files. During Migration, there was no error. Migration logs are share: Running migration: 2_deploy_token.js Deploying DappToken... ......
0
votes
1answer
26 views

Ownership trasfer to crowdsale contract fails while deploying in truffle

I have created a "Token" and the "Crowdsale" contract as mentioned in the openzeppelin. Below is my deployment code in truffle. I am new to ICO related coding and solidity. The question may be very ...
0
votes
1answer
52 views

Truffle Flattener creates empty flat file

Using trufffle-flattener, I am trying to create a flat file merging all the related solidity based codes. After executing the flattening scripts, I see only the empty flat file getting created. Could ...
1
vote
1answer
42 views

How to deploy smart contract with visible source code (etherscan)?

I'm trying to deploy a contract to the rinkeby (hope that thats the network to use for beta testing). Deploying worked with the command truffle migrate --reset -f 2 --network rinkeby. Unfortunately,...
1
vote
1answer
111 views

How to find out the number of blocks in Ganache?

I have tested a contract on truffle using the command: truffle test I got following message: D:\Funding4\contracts>truffle test Compiling .\contracts\Funding4.sol... Compiling .\contracts\...
0
votes
0answers
61 views

Setup Parity PoA network compatible with truffle framework deployment mechanizm

The question from the title kind of wraps around the real problem but it is actually what I'm having trouble making work. I'm trying to setup production PoA network so using all the flags made for ...
0
votes
1answer
33 views

How can I persist the chain state of Truffle develop? [duplicate]

Is it possible to persist the chain state of Truffle develop? If my truffle console crash, can I restore the chain state?
0
votes
1answer
22 views

Running contract code in javascript without deploying on chain

I am building a state channel battleship game. I have a stateless contract which contains all my gameplay logic and another statechannels contract which contains all the dispute logic. Ideally, I ...
3
votes
0answers
46 views

Many Contract Testing strategies

I'm trying to wrap my brain around how to effectively test multi "projects" in Truffle, assume a simple ganache setup, also assume that these contracts seem to work, in remix, and in unit tests, but, ...
3
votes
1answer
39 views

Deploying smart contract through Truffle

I want to know when deploying smart contract using truffle, is there a way to do that without using the migration files? I won't be requiring the Migration features.
2
votes
1answer
101 views

call other contract's external function , the error: The contract code couldn't be stored, please check your gas amount

when I deploy a contract, the truffle frame told me this error :“The contract code couldn't be stored, please check your gas amount”。 the solidity code is: 1) Base.sol pragma solidity ^0.4.22; ...
3
votes
1answer
209 views

Quorum privateFor not working with truffle-hd-wallet-provider

I'm trying to deploy a contract private to one node in the Quourm 7-nodes example. The migrate works as expected when deployed normally with truffle, but ignores the privateFor part and deploys a ...
3
votes
1answer
71 views

3_deploy_contracts.js question

What is a good way to solve my deployment issue: (furtherance of issue: truffle testing problem, migration successful, testing runs out of gas with addition of testing file) When i add the ...
2
votes
0answers
24 views

Orders Facilitator Contract has not been deployed to detected network

I'm trying to deploy a simple contract to truffle. This is very confusing now because truffle has it's own network built into it, yet the tutorial I'm following uses test-rpc. I've looked at a few ...
1
vote
0answers
30 views

Why doesn't truffle set the defaultAccount by default? [closed]

According to this thread, whenever you're trying to interact with the contract's state via truffle develop, you have to do this: web3.eth.defaultAccount = web3.eth.accounts[0]; Why isn't this done ...
0
votes
1answer
94 views

Pass parameters into Solidity Constructor from Truffle CONSOLE

How do we pass in constructor parameters to a contract that we want to test? I understand that the initial contract deployment occurs in the migrations file, but if, for testing/debugging purposes, we ...
0
votes
1answer
354 views

Deploy to mainnet with Truffle + Infura: nonce too low

I'm trying to deploy a very simply ERC20 token contract using Truffle and Infura and getting this: Running migration: 1_initial_migration.js Deploying Migrations... ... ...
0
votes
2answers
58 views

deploy script warning, likely error

var CredentialOrgFactory = artifacts.require("CredentialOrgFactory"); var CredentialFactory = artifacts.require("CredentialFactory"); var ApplicantFactory = artifacts.require("ApplicantFactory"); //...
0
votes
0answers
59 views

Connecting to Truffle Develop's Console?

You can create a local Truffle instance of the Blockchain, connect to it with the console, deploy your Smart Contracts, and monitor its log via the following commands. Terminal Tab 1: truffle ...
1
vote
0answers
27 views

truffle can not build success

when I fllow this document step by step enter link description here,I have something wrong with my truffle build,and I delete truffle.js ,this is photo, please help thx!!
0
votes
0answers
71 views

Can't deploy contract on my test network

I'm getting an error when I try to deploy a contract. I run ganache on which I can deploy other contracts without problems. My deployment file: const Race = artifacts.require("./Race.sol"); const ...
2
votes
2answers
252 views

Cannot read property 'getBlock' of undefined

I'm having an issue with running truffle test on a Javascript test. I get the error TypeError: Cannot read property 'getBlock' of undefined. I am trying to get the time of the latest block by using a ...
2
votes
0answers
155 views

Truffle deployment with metamask to ganache leads private key error

I'm using Truffle, web3js and Metamask to build a webapp. I'm using ganache for local testing. I'm trying to deploy a contract with import TruffleDeployer from 'truffle-deployer'; import ...
1
vote
1answer
37 views

truffle migrate fails when I remove console.log

I have this migration script: var MyTok = artifacts.require("./MyTok.sol") var MyTok_Crowdfund = artifacts.require('./MyTok_Crowdfund.sol') module.exports = function (deployer, _, accounts) { ...
0
votes
2answers
41 views

Speedup contract deployment to Frontier

I am using Truffle suit to develop, test and deploy my smart contracts. It works pretty well on test networks but on live one it slow like a snail. For instance this transaction - it is just ...
0
votes
0answers
25 views

How to .endSale from a contract?

I am writing a smart contract for a token sale. How can I endSale destroy contract and transfer remaining tokens and accumulated ethers from the sale to admin wallet ( using truffle commands)? I ...
0
votes
0answers
40 views

how to deploy frontend side of dapp + truffle based

Apologize to ask non-code related question here. Most of the questions are asking about contract-related deployment and it seems quite hard to find frontend-related deployment in stackExchange. Is ...
0
votes
1answer
178 views

What are the current challenges developers face in creating a dapp in ethereum? [closed]

Can you tell what are the pain points for the Blockchain developers while developing DApp/ managing consortium networks.
0
votes
1answer
277 views

How to import artifacts, describe, it from Truffle

Instead of using truffle deploy, I want to create my own deploy.js script and run it using node deploy.js. How can I import the classes/functions artifacts, describe and it, so we can do like so: ...
3
votes
2answers
364 views

Prevent 'truffle test' from invoking 'truffle deploy (migrate)'

It seems that truffle test automatically invokes truffle deploy (aka truffle migrate). As far as I'm concerned, these two functionalities are completely unrelated. So I cannot quite figure out why ...
0
votes
1answer
166 views

how to use truffle to read state value of a smart contract

I'm a newbie. I have following dummy contract contract A{ uint public test = 6; address public myaddress; uint public dummy; /** * The logs that will be emitted in every step of the contract's ...
0
votes
2answers
160 views

Truffle deployment error with infura

I am stuck with an issue as the contract works fine with remix ide and local ganache provider but when I am trying to use truffle with infura apis to deploy the contract over rinkeby testnet, I keep ...
1
vote
1answer
371 views

how is it different .deployed() and .new() ??

When I try to test my contract in truffle test javascript, how is it different to create new instant for my contract by instant = await myContract.deployed() and instant = await myContract.new()? is ...
0
votes
1answer
222 views

Deploying DAPP on cloud using docker

I am novice in docker technology. I have developed a basic private ethereum blockchain DAPP locally using Truffle and I want to deploy the same on cloud. 1) I need tutorials for how to crate a ...
1
vote
1answer
103 views

Help with inheritance and Truffle tests

I have two contracts that both inherit from OpenZeppelin's Whitelist. After deploying both contracts, I use an instance of the first contract to add a "trusted" address to the whitelist. Since both ...
1
vote
1answer
281 views

How to estimate my contract code size? it is too big to deploy now

I think my contract is too big to deploy, because I got Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: oversized data when I am trying to deploy on ...
5
votes
4answers
727 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 ...
4
votes
1answer
1k views

What is use of HDWalletProvider in Truffle config?

The sample code here for deploying to Ropsten used HDWalletProvider and a mnemonic in the config, but I am not sure I understand its purpose. Is this just telling it the account that will become the ...
0
votes
2answers
327 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
0answers
227 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
1answer
191 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 ...
5
votes
1answer
251 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 ...
1
vote
1answer
324 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 ...
0
votes
0answers
34 views

compile contracts while using truffle with angular4

I am using angular 4 with truffle to build an application. I know how to compile and deploy contracts before starting ng server but what i want to do is to deploy a contract on run time when user want ...
1
vote
1answer
474 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
1answer
49 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 ...