Questions tagged [truffle-deployment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
262 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
523 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
102 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
37 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
89 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
325 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
670 views

Deploy to mainnet with Truffle + Infura: nonce too low [duplicate]

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
103 views

deploy script warning, likely error

var CredentialOrgFactory = artifacts.require("CredentialOrgFactory"); var CredentialFactory = artifacts.require("CredentialFactory"); var ApplicantFactory = artifacts.require("ApplicantFactory"); //...
1
vote
0answers
37 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!!
3
votes
2answers
663 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
224 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
80 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
61 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
43 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
1answer
244 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
634 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: ...
9
votes
5answers
1k 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
424 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
303 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
1k 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
389 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
187 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
958 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
987 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 ...
5
votes
2answers
3k 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
720 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
351 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
386 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
1answer
514 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 ...
2
votes
1answer
885 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
1answer
529 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
63 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
1answer
432 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
2answers
3k 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 ...
4
votes
1answer
834 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
1answer
108 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
1answer
571 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
1answer
326 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
1answer
198 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
3answers
1k 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
2answers
198 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
1answer
1k 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
1answer
334 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. ...
1
vote
0answers
402 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
3answers
975 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 ...
3
votes
1answer
508 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
1answer
729 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....
2
votes
1answer
999 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
1answer
381 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... > ... ...
12
votes
4answers
3k 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' (...