Questions tagged [truffle-migration]

Truffle Migrations are JavaScript files that help you deploy contracts to the Ethereum network. These files are responsible for staging your deployment tasks, and they're written under the assumption that your deployment needs will change over time. As your project evolves, you'll create new migration scripts to further this evolution on the blockchain.

479 questions
3
votes
3 answers

truffle migrates the contract with a weird account which is not from my mnemonic

I set my infura endpoint and mnemonic to deploy the contract to the Rinkeby testnet. Like this below. const infuraKey = process.env.INFURA_KEY const test_mnemonic = process.env.TEST_MNEMONIC networks: { rinkeby: { provider: () => new…
Jung Chun
  • 191
  • 13
3
votes
1 answer

I got " VM Exception while processing transaction: invalid opcode" error

I am trying to do truffle migrate but I got this error $ truffle migrate Compiling your contracts... =========================== > Everything is up to date, there is nothing to compile. Starting migrations... ====================== > Network…
Seyma Yaldiz
  • 43
  • 2
  • 4
2
votes
1 answer

unable to deploying Truffle Contracts to Rinkeby!

I am stuck with an issue as unable to deploying Truffle Contracts to Rinkeby network! As shown here it's using network 'development'? why? I want Rinkeby! ASMAHANs-MacBook-Pro:project-6 asmahan$ truffle compile ASMAHANs-MacBook-Pro:project-6…
2
votes
3 answers

Truffle migrate: Could Not Find .sol file from any sources

I just started onto the blockchain journey a couple of hours back trying to create an elections program on the Ethereum blockchain. While trying to migrate the smart contracts using truffle migrate, I encountered a roadblock which says the…
2
votes
0 answers

How to get deployed library from truffle migration script?

I have smartcontract that linked to library. I see both address in truffle migrate results but I want to have their address inside migration script. While I can get contract's address by contract.deployed() it doesn't works for library. Awaiting…
Alex G.P.
  • 1,277
  • 11
  • 27
2
votes
0 answers

truffle migrate fails:Insufficient gas limit or exceed gas limit

$ truffle migrate Compiling .\contracts\Migrations.sol... Compiling .\contracts\Voting.sol... Writing artifacts to .\build\contracts Using network 'development'. Running migration: 1_initial_migration.js Deploying Migrations... ... undefined Error…
BHAWIN
  • 41
  • 2
2
votes
2 answers

When using truffle command "truffle migrate", previously deployed contracts are re-deployed, is there a way to prevent this?

i've been studying solidity/blockchain for a few months now and recently started development on a personal project. I have a few questions i kept running into, specifically when deploying contracts with truffle/ganache. After successfully compiling…
pierre96
  • 31
  • 3
1
vote
1 answer

Truffle migrate exception on windows

I was trying to migrate a contract in windows, I am getting the following pop-up message. I already installed truffle node module.
1
vote
1 answer

Truffle migrate: unknown network "development"

I'm using macOS High Sierra. I installed truffle and ganache-cli as below npm install -g truffle npm install -g ganache-cli Then I created a directory and cd to it to run the test mkdir ethereumTest cd ethereumTest I initiate the truffle and…
ycenycute
  • 111
  • 3
0
votes
0 answers

Not able to deploy NFT contract on reinkeby .Seems like truffle is not able to decode private key from the mnemonic

Here is the truffle config module.exports = { networks: { cldev: { host: '127.0.0.1', port: 8545, network_id: '*', }, ganache: { host: '127.0.0.1', port: 7545, network_id: '*', }, kovan: { …
0
votes
3 answers

Truffle not deploy updates

Truffle not deploy contract updates. truffle migrate compiles it but falsely say network up to date. OS: Windows Truffle v5.1.39 npm 6.14.5
0
votes
1 answer

Unknown network ganache

Although it compiles successfully truffle migrate --network ganache gives the following error: Unknown network "ganache". See your Truffle configuration file for available networks. I believe I have it wired correctly Truffle v5.1.34 (core:…
0
votes
4 answers

How does Truffle Migrate sign the transaction that it's dealing with?

As a newbie in this space, I'm just wondering how Truffle handles migrating contracts with the Truffle Migrate command—what does it use to sign those transactions? Does it use some wallet implementation? In my development environment, truffle.js is…
E. Rowlands
  • 127
  • 8
0
votes
1 answer

Error migrating contracts with Truffle

I´m having problem migrating my contracts to the private blockchain. That blockchain is located in a CentOS VirtualMachine instance. With the Geth console I connect to the blockchain and I unlock one account. Then I open a new terminal and I open…
UnexpectedCharacter
  • 852
  • 1
  • 11
  • 30
0
votes
1 answer

Deploy Crowdsale contract into ropsten network , but received :The contract code couldn't be stored, please check your gas amount

I am trying to deploy simple ERC20 token and simple Crowdsale contract into ropsten network with locally installed Truffle, but received this error: The contract code couldn't be stored, please check your gas amount error message truffle migrate…
1
2