All Questions
Tagged with ganache truffle-migration
34 questions
0
votes
1
answer
23
views
Copying of type struct ECommerceMarketplace.OrderItem memory[] memory to storage not yet supported
I am working on creating an E-Commerce Smart Contract. But when I run the migrate command, I'm getting this error:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ...
1
vote
0
answers
32
views
Truffle migration of an ownable contract
Initially, I deploy everything using REMIX IDE, currently I would like to try to deploy a contract that is ownable into local ganache blockchain using truffle migration:
pragma solidity ^0.8.18;
...
0
votes
1
answer
52
views
TypeError: Member "add" not found or not visible after argument-dependent lookup in struct Chainlink.Request memory
I encounter this error when trying to compile and migrate to my blockchain EVM.The smart contract supposed to trigger a job from Chainlink from Ganache EVM. This is the code to it
pragma solidity >=...
2
votes
0
answers
71
views
Truffle hit a require or revert statement in simple ERC777 constructor
I have incredibly simple code, taking straight from openzeppelin's ERC777 contract. When I run truffle migrate, however, I receive
Replacing 'Implementation'
--------------------------
*** ...
0
votes
1
answer
273
views
Truffle migrate - TypeError: migrations.setCompleted is not a function
I ran $ npx truffle migrate to deploy 2 contracts to Ganache but I got an error:
This version of µWS is not compatible with your Node.js build:
Error: Cannot find module './uws_darwin_x64_88.node'
...
0
votes
0
answers
53
views
Could not find artifacts for " + import_path + " from any sources"
I'm following this tutorial on creating my own nft and I came across this problem. Can someone help me PS C:\Users\caclc\contracts> truffle migrate
Compiling your contracts...
Everything is up to ...
0
votes
0
answers
66
views
Truffle with weird behavior dealing with uint type of variables
I´ve spent a couple weeks try to understanding what was heppening. The same solidity code worked great in REMIX but not in Truffle/Ganache. Let´s me explain. I wrote a code bases on Openzeppelin, but ...
0
votes
0
answers
15
views
my transaction triplicates and all of them fail
I am new to creating smart contracts, I followed this video in order to create a simple to-do list. I needed to update some code in order to make it work since the video is more than 2 years old. This ...
0
votes
2
answers
1k
views
Uncaught TypeError: contract.name is not a function
I`m trying to check if I correctly deploy a contract with truffle and ganache.
I run truffle console and then contract = await Kryptobird.deployed(). But when I try to get the name of the contract I ...
1
vote
0
answers
123
views
Why does Ganache's contract information not accurately display hex values?
Difficulties are as stated above.
Running Truffle v3.5.3, Solidity ^0.8.0, Ganache v2.5.4 local test net.
I have a contract upcomingRace which has the following constructor:
constructor(string memory ...
0
votes
2
answers
1k
views
Cannot connect to Ethereum client using truffle/ganache
I first started ganache and see in the log that "Ganache started successfully" with the RPC Server set as: HTTP://127.0.0.1:7545
While running truffle migrate command, I've received the ...
4
votes
1
answer
4k
views
Checking transactions in ganache-cli
Is there a command to enter into the terminal to check past transactions on the locally deployed ganache-cli blockchain? With ganache gui one gets the transactions button. Is there some similar ...
1
vote
1
answer
1k
views
Truffle test deploys everytime a new contract with .deployed()
I want to test some contracts^^ And now Im wondering because like I understand .deployed() should take the contracts from the migration in truffle and dont deploy new ones?
My test.js:
const one = ...
1
vote
0
answers
1k
views
UniswapV2 addLiquidityETH() reverting when trying to deploy to ganache locally
I'm trying to locally deploy a contract similar to sushiswap, but I keep getting a revert from addLiquidityETH(), no message other than VM Exception while processing transaction: revert
//module....
2
votes
1
answer
656
views
How to test your smart contract against currently existing ones on mainnet locally using Truffle?
Background
I am fairly new to smart contracts and am currently experimenting using Ganache and Truffle to test on my local machine.
My goal would be to have the smart contract interacting with other ...
0
votes
1
answer
870
views
Why is truffle migration failing to deploy contracts? "cannot read options of undefined"
I am trying to deploy a local version of SushiSwap on a local test Ethereum chain.
I am using Ganache and Truffle to deploy the smart contracts locally.
When I run truffle migrate and attempt to ...
0
votes
1
answer
37
views
How of should I migrate my Smart Contract?
I am developing a scraper which scrapes data and puts it on ethereum blockchain(ganache for dev) every week. So as to put this data onto the blockchain should I migrate my smart contract each time I ...
0
votes
1
answer
2k
views
How to set allowUnlimitedContractSize in Ganache V2.1.0 with windows 10
while following this or this solution I found nowhere any file to make change for
allowUnlimitedContractSize = true so my problem is same as in link but how I can change this in Ganache v 2.1.0
0
votes
0
answers
725
views
How to fix? Tx nonce go out of sync when using multiple unit tests on the same contract under Ganache+Truffle
Here is my example contract (ignore the fact this could be pure, this is a simplified example and my real example is not a pure function, it changes state, but I can reproduce the bug with this simple ...
-1
votes
1
answer
269
views
Truffle ganache error
I have this error~!
Contract has not been deployed to detected network (network/artifact mismatch)
Can you help me thank you!
4
votes
1
answer
1k
views
Ganache + Truffle: how to deploy a contract without considering the gas
I am working with Ganache and Truffle.
I am trying to deploy kind of a huge smart contract, but most of the functions in this smart contract are pre-prod functions, so I do not really worry about real-...
2
votes
0
answers
32
views
When does 'truffle deploy' yield a different output every time?
truffle deploy (aka truffle migrate) is documented here.
I'm doing the following sequence:
Starting a local Ganache node
Running truffle deploy
I'd expect this sequence to yield the exact same ...
1
vote
2
answers
309
views
How use Truffle Framework [closed]
Anyone please help me to understand what is exactly Truffle & Ganache ?
How to install & use Truffle ?
Please reply who are know this.
0
votes
4
answers
4k
views
truffle migrate --network ropsten issues
When i run truffle migrate --network ropsten i don't see the contract deployment but just
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to ...
0
votes
3
answers
9k
views
Truffle compile and migrate not working
I have a geth node running on my laptop. This is the command I used to start geth.
geth --port 4321 --networkid 1234 --datadir=./dataDir --rpc --rpcport 8543 --rpcaddr 127.0.0.1 --rpcapi "eth,net,...
1
vote
0
answers
2k
views
Error: Cannot create instance of X; no code at address
Having a little issue. I have deployed a Mock ERC20 contract on development network like so:
const ERC20Mock = artifacts.require("ERC20Mock");
module.exports = async function(deployer, network, ...
0
votes
0
answers
903
views
Truffle migrate not working with 2_deploy_contracts.js
I have made a sample contract using Truffle's pet-shop. I have also added the 2_deploy_contracts.js file.
I have changed the solidity version and also the constructor() public {} to comply with the ...
0
votes
1
answer
606
views
Set up backup from private Ethereum (Ganache) [duplicate]
I have created an ethereum application with Ganache and truffle js. i have installed ganache in a server, and th application work. but when i stop the server i lose the the smart contract that i have ...
1
vote
1
answer
113
views
Truffle migrate ERC820Registry
I use Truffle and Ganache and I want to test some contracts that use the ERC820 Registry. I'm new to Truffle (and JavaScript in general) and I'm struggling to follow the instructions described in EIP-...
1
vote
1
answer
104
views
Truffle fails to migrate an Oraclize contract into Ganache
I have a contract that is using Oraclize.
When deploying the contract from the Remix IDE into Ganache/Ethereum-bridge via MetaMask, the contract is fully functional. However, when trying to migrate ...
0
votes
1
answer
1k
views
Ganache and truffle - how to set zero deployment fees
I am running a local ganache-cli node on my machine and would like to have zero transaction fees. For this reason I am starting the node using
ganache-cli -g 0
which sets the gas price to zero. ...
1
vote
0
answers
174
views
Truffle migrate hangs when I run ganache with the --db flag
From the command line, when I run the following command:
ganache-cli --db ~/Documents/Ethereum/ --mnemonic "bride forest screen jazz injury grit rather seek also donate media mechanic"
and I run "...
1
vote
0
answers
660
views
"truffle migrate" running all migrations everytime
I have a very weird behavior happening whenever I run "truffle migrate". Ideally, as per the documentation, it states:
This will run all migrations located within your project's migrations ...
2
votes
1
answer
416
views
Contract Deployed via Truffle doesn't work, Remix deployed contract does work. Why?
So, I am developing (or trying to) with Truffle against ganache.
When I do "truffle migrate" I get:
Using network 'development'.
Running migration: 1_initial_migration.js
Replacing Migrations......