Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jul 04 20:15
    cds-amal commented #5258
  • Jul 04 19:48
    cds-amal commented #5258
  • Jul 04 17:56
    cds-amal commented #5258
  • Jul 04 17:54
    cds-amal commented #5258
  • Jul 04 15:57
    s1na commented #5258
  • Jul 04 14:29
    cds-amal commented #5258
  • Jul 04 14:05
    cds-amal review_requested #5258
  • Jul 04 14:05
    cds-amal review_requested #5258
  • Jul 04 14:04
    cds-amal review_requested #5258
  • Jul 04 14:04
    cds-amal review_requested #5258
  • Jul 04 10:24
    s1na opened #5258
  • Jul 04 05:06
    vaimdev edited #5257
  • Jul 04 05:06
    vaimdev edited #5257
  • Jul 04 05:06
    vaimdev edited #5257
  • Jul 04 05:05
    vaimdev opened #5257
  • Jul 03 07:49
    natysav commented #391
  • Jul 02 01:03
    wbt commented #5251
  • Jul 01 22:02
    haltman-at closed #5235
  • Jul 01 22:02
    haltman-at opened #5256
  • Jul 01 22:02
    haltman-at review_requested #5256
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?
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
heyyy im trying to compile a test with truffle but its pop up this message
TypeError: Error parsing C:/Windows/System32/truffle-project/contracts/Migrations.sol: Cannot read property 'addFunction' of undefined
at runWithReadCallback (C:\Users\schar\AppData\Roaming\npm\node_modules\truffle\build\webpack:~\solc\wrapper.js:37:1)
at Object.compileStandardWrapper (C:\Users\schar\AppData\Roaming\npm\node_modules\truffle\build\webpack:~\solc\wrapper.js:85:1)
at Object.parseImports (C:\Users\schar\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-compile\parser.js:47:1)
at Object.getImports (C:\Users\schar\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-compile\profiler.js:374:1)
at C:\Users\schar\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-compile\profiler.js:346:1
Truffle v5.0.5 (core: 5.0.5)
Node v16.3.0
Alexander Dan
Alechary, do you have a public repo to take a closer look at this compiling issue?
Wahas Ali Mughal

Ekran görüntüsü 2022-01-22 104557.png

getting same error while installing truffle node version 16.13.1

hello ...is there any problem with the truffle website ...in my case the truffle logo is occupying the most of the area of the screen .so i cant read the documentation well.any suggestion ?
Amit Kawad
How can i use ganache with https and not http
Levi W.

Hi all, new to truffle (v5.4.30) and when I run a test that initializes my contract, it fails with: "intrinsic gas too low".

It compiles fine, but I tried reducing my contract's constructor to only calling the ERC777 constructor, and still get this error.
I tried increasing truffle-config's networks.live.gas and gasPrice, but nothing changed.

The only google results are from a couple years ago, using older versions of truffle. I can run other tests, and this contract's constructor looks simple, so I'm not sure what's wrong here. Any ideas?

Levi W.

I'm still having trouble finding my problem, but using a fresh truffle init, I boiled it down to extending a contract from @openzeppelin/contracts
Here's a gist of my boiled-down contract and migration, any tips are much appreciated:

The error goes away if I copy the parent contract out of the library and into contracts/, so maybe this is a syntax mistake on my part? I'm not seeing it, and the contract compiles, but won't initialize.

Levi W.
It seems this only happens with @openzeppelin's ERC777 contract. I'm able to extend several of their other contracts without problem.
1 reply
Hi guys, i'm having so much trouble installing the Truffle suite onto Windows 11, can anyone help?
Hi All - having issue with running npm install truffle -g on Mac OS 12.1 with latest node and npm too. Getting the following error
ERR! note: '__uint128_t' declared here
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
npm ERR! typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
npm ERR!         ^
npm ERR! note: '__uint128_t' declared here
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8:
npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16:
npm ERR! In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:505:
npm ERR! In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:176:
npm ERR! In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
npm ERR! In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:642:
npm ERR! In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstring:61:
npm ERR! In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string.h:61:
npm ERR! In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:61:
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
npm ERR! typedef __uint32_t      __darwin_wctype_t;