Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Dec 06 23:12
    acuarica edited #5728
  • Dec 06 21:44

    haltman-at on boba-roba-goba


  • Dec 06 21:43

    haltman-at on develop

    Switch Etherscan fetcher from B… Merge pull request #5761 from t… (compare)

  • Dec 06 21:43
    haltman-at closed #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at review_requested #5761
  • Dec 06 21:00
    haltman-at opened #5761
  • Dec 06 20:54

    haltman-at on boba-roba-goba

    Switch Etherscan fetcher from B… (compare)

  • Dec 06 20:26
    eggplantzzz edited #5760
  • Dec 06 20:24
    eggplantzzz opened #5760
  • Dec 06 19:56
    eggplantzzz commented #5751
  • Dec 06 19:52
    eggplantzzz commented #5746
  • Dec 06 19:47
    eggplantzzz commented #2090
  • Dec 06 19:44
    eggplantzzz commented #5757
Lucas Delbel

Hey guys, it's my first time too. I need some help to understand the problem here. I'm trying to deploy an ERC20 contract, but it has a liquidity pool and some Uniswap instantiating happening in the constructor, which is preventing the migration to succeed. I'm doing it on ropsten using infura, and used the ropsten version of uniswap factory address and all.

constructor () {

        _rOwned[owner()] = _rTotal;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x9c83dCE8CA20E9aAF9D3efc003b2ea62aBC08351);
         // Create a uniswap pair for this new token
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;

        //exclude owner and this contract from fee
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[MarketingWallet] = true;
        _isExcluded[Dead] = true;

        emit Transfer(address(0),owner() , _tTotal);

It works fine without those lines, but when I add them, it shouts this error:

Error: while migrating TESTCOIN: Returned error: base fee exceeds gas limit

Hey guys.when I verify my contracts in mainnet.But I get a reported error. "Cannot read properties of undefined (reading 'address')"
can anyone help ?thank so much

Looking for some help with ganache usage via node.js:

I am testing a bridge application which tries to spawn multiple ganache-server instances for setup. I have the following function which was working fairly well on ganache-cli: "^6.12.2":

import ganache from 'ganache-cli';

export type GanacheAccounts = {
  balance: string;
  secretKey: string;

export function startGanacheServer(
  port: number,
  networkId: number,
  populatedAccounts: GanacheAccounts[],
  options: any = {}
) {
  const ganacheServer = ganache.server({
    accounts: populatedAccounts,
    port: port,
    network_id: networkId,
    _chainId: networkId,
    chainId: networkId,
    _chainIdRpc: networkId,

  console.log(`Ganache Started on${port} ..`);

  return ganacheServer;

I am testing another process in parallel - a relayer - which listens to events on one ganache instance and issues transactions on the other ganache instances. I am trying to debug some functionality on the relayer and I believe the instamine feature of ganache could be having an effect.

My problem is that I attempt to change the above code to include a blockTime: 2, entry into the options of the server() call. And now in test setup I see errors such as Error: the tx doesn't have the correct nonce. account has nonce of: 15 tx has nonce of: 14.

I am in the process of attempting similar changes but bumping the version to "ganache": "^7.0.0-beta.2". I would appreciate any ideas on what could be the cause of the above error! Thank you.

Franky Limon Quamfy ( 🪞,🪞)
Hey guys when I run npm install truffle-hdwallet-provider --save
I get npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -4058 npm ERR! enoent An unknown git error occurred npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
Not quite sure why I'm getting this error everything is updated. J

I am writing a unit tests for my Solidity smart contract using Truffle and Solidity and I can't find info how I can call a function from a different account. Able to create JS tests with multiple accounts fine. Anyone able to provide some insight?

Example Solidity test:
uint result = contract.doSomething() // How can I call this from another address?


I found my solution:
First, get another account
const [owner, otherAccount] = await hre.ethers.getSigners();

Then connect them to the contract and do the call.

Michel Brown
Hi,guys. In truffle, can you tell me why you use unbox? is it really useful?
Michel Brown
@wholespace: Who are you
Naruhito Takei
Hello Everyone.
@michaelbrown429:matrix.org It is just boilerplate for dapp. There are many boilerplates like that.
1 reply
Hey quick question with an issue I'm having deploying a contract.
"Kickstarter" -- Invalid number of parameters for "undefined". Got 0 expected 4!.
From some research it appears to be passing the incorrect arguments to the constructor of my contract, in this case my contract's constructor takes no arguments and it doesn't appear to be the problem.
One reason I think there could be an issue though is the contract I'm importing from kickStarter.sol has multiple contracts inside of it.
i.e. it has Contract A {} Contact B is A {} so maybe truffle doesn't know which contract to deploy?
@FreewayHeilig_twitter Before I also met similar occasion, everything not worked, so I reinstall npm. After that solved.
Hey guys
I have an issue with truffle. So truffle is supposed to compile modified contracts only right (after first compile). Mine is compiling all contracts everytime, which is kinda annoying. Any idea how to solve this?
Marcelo Cozzani
Hello everyone, any idea why when i try to compile my contracts using command - truffle compile it gives me this error
SyntaxError: Unexpected identifier
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Object.require (node:internal/modules/cjs/helpers:102:18)
at Function.load (C:\Users\admin\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\config\dist\index.js:159:1)
at Function.detect (C:\Users\admin\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\config\dist\index.js:148:1)
at Object.module.exports [as run] (C:\Users\admin\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\compile\run.js:8:1)
at Command.run (C:\Users\admin\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command.js:189:1)
Truffle v5.4.29 (core: 5.4.29)
Node v16.13.1
Thanks in advance
hi there
so I've got this issue trying to upgrade a contract on avax mainnet...
it just dumps out StatusError: Transaction: 0xdf6af378e6a655da9715edd865a47dcb20ad46d2aff7428cc59bf01a3bf6b1c2 exited with an error (status 0)
this happened after succeeding doing the same process on testnet
woas wondering if anyone could shed light on that
How can I deploy multiple instances of the same contract?
2 replies
The second deployment replaces the first.
李婷婷 Lee Ting Ting
hi >< Does anyone know how to debug "Fail - Unable to verify" when using truffle-verify plugin? Thanks! Most of my contracts were successfully verified while 3 of them failed. I tried --debug but still no cue. Thanks very much!
6 replies

Hello everyone! I'm following along with the truffle tutorial and after a few tweeks got everything working great! However, now I'm struggling to add a returnPet() function to my solidity smart contract. The transaction fails and somehow metamask knows this ahead of time because it warns me that it might fail before confirming ("let's try anyway"). I've posted on stackoverflow, but responses have been slow. I feel like I'm missing something fundamental and could really use some help figuring out where to look first.


Thanks for reading.

Disregard. I figured it out 😁
Hi, does anyone know why truffle compile cannot find suitable configuration file on Windows 10 terminal?
can anyone help me ?
i trying to do deploy some contracts to truffle test network but i got many errors
Error: Contract error: contract binary not set. Can't deploy new instance.
This contract may be abstract, not implement an abstract parent's methods completely
or not invoke an inherited contract's constructor correctly
Liang Liang
🎊 🎉 Check it out. Ganache v7 is out!!!! Read more about all the sweet new features here 👉 https://trufflesuite.com/blog/introducing-ganache-7
1 reply
Charlton Davis
Hey guys, is there a way to "re-fork" a chain on ganache. I want to start a ganache server, but as new contracts get updated, the forked Blockchain is outdated. My goal is to re-fork every minute or so, so ganache is only 1 minute behind the live mainnet at all times. Anyone know how I can do this?
Hello. I'm using latest ganache 7 programmatically with ethers. I'm trying to figure out how to mine instantaneously using a fork. I have tried 3 different providers to fork from. I'm trying to do a uniswap trade. It still seems to take no less than 9 seconds to complete. Any suggestions on what to try or is this not possible? Thanks
Hello all, I'm having some trouble installing ganache. Is it compatible with NodeJS 14.x?
1 reply
Unfortunately I'm using Gentoo and portage doesn't have anything older than NodeJS 12.19.1
My profile installed nodejs 14.17.6
Ekran görüntüsü 2022-01-22 104557.png
1 reply
Hello everyone. My name is oguzhan. I am new to blockchain. This is how I get an error when installing truffle on blockchain. Can you help me?
Hey guys, I've posted a question on ethereum stackexchange; if someone could help me.
Why I can't push items into this array?
1 reply