Questions tagged [ganache]
For questions about using the Ganache personal blockchain testing environment.
640 questions
1 vote
0 answers
19 views
Error: the tx doesn't have the correct nonce
After deploying the contract using Ethers v6 with Ganache, when I attempt to call a contract function, I encounter an error. const factory = new ethers.ContractFactory(abi, bin, wallet); console....
0 votes
0 answers
33 views
Truffle deployment error: Ownable contract on Ganache
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract BalanceGame is Ownable { constructor(uint256 _cost) Ownable(...
0 votes
0 answers
26 views
How do you fix these revert errors when the solidity functions are called from the backend?
My blockchain marketplace app uses a Ganache workspace for the accounts and I'm trying to test my backend functions on Postman but I keep running into this error: "error": "missing ...
0 votes
0 answers
40 views
MetaMask Won't Connect to My dApp on Ganache, but the Smart Contract Executes Successfully
enter image description here I've been developing a dApp using Ganache as my local blockchain, and everything was working fine a few days ago. My smart contract is successfully getting executed, but ...
3 votes
2 answers
457 views
What is the Alternative to Ganache for Local Evm Network setup and development
Since Truffle and Ganache were sunset last year, I’m looking for alternatives for local blockchain development. Specifically, what tools or frameworks are recommended for testing DApps on newer ...
0 votes
1 answer
70 views
Cannot deploy through Ganache
i read a a little bit about the topic, but nothing seems work. I'm a blockchain newbie and i'm trying to deploy a smart contract. I want to test it by mocha and ganache, but to do this i have first to ...
0 votes
0 answers
25 views
Ganache-UI connection with Remix IDE [duplicate]
I connected Ganache-UI with Remix and able to view all the accounts and balances, but upon deploying a basic contract, I get such message: Gas estimation errored with the following message (see below)....
1 vote
1 answer
99 views
Can't call POOL.flashLoan provided by Aave
I'm trying to call POOL.flashLoan provided by Aave core v3. This is for a test and done on forked mainnet using ganache/truffle. contract FlashLoanArbitrage { IPool public POOL; ...
0 votes
0 answers
97 views
when using call function in web3.py im getting error
Error: Could not transact with/call contract function, is contract deployed correctly and chain synced? import streamlit as st from web3 import Web3 import hashlib import json # Connect to local ...
0 votes
1 answer
36 views
Truffle Test Error: UnhandledRejections detected VM Exception while processing transaction: revert code: -32000
I am still learning solidity and using Ganache. Below is the contract I am trying to execute: // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; contract FundMe { address payable public ...
0 votes
1 answer
40 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 ...
0 votes
1 answer
88 views
Call to view function, which returns a bytes value, got error: VM Exception while processing transaction: invalid opcode
I have this test smart contract // SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity 0.8.26; contract TestSomething { bytes state; bytes32 state32; constructor() {} ...
1 vote
2 answers
295 views
Ganache alternative in docker
After the Sunset of Truffle and Ganache . Are they already some alternative to the Ganache docker image https://hub.docker.com/r/trufflesuite/ganache with enabled persistent data for local development ...
0 votes
0 answers
89 views
How can I create new accounts and interact with the blockchain using Ganache (or other testnets)?
I am developing an Android app with kotlin and I want to create new accounts in the blockchain. I am using Ganache as a testnet. I am creating a new Bip32ECKeyPair for every user in the app and I want ...
1 vote
1 answer
95 views
Storing MQTT on Ethereum Chain or is there a better way?
I'm working on a college project where we are using IoT sensors (raspberry pi) to monitor the supply chain conditions, think temp, pressure, humidity etc. This data is being transmitted via MQTT to a ...