Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 02:14
    Miridescen edited #5233
  • 02:13
    Miridescen edited #5233
  • 02:10
    Miridescen opened #5233
  • 02:04
    cds-amal synchronize #5230
  • 02:04

    cds-amal on awol

    events: add missing deps dashboard: add missing deps external-compile: add missing d… and 9 more (compare)

  • Jun 24 22:36
    BeniSchlattmann commented #5220
  • Jun 24 22:31
    BeniSchlattmann commented #5220
  • Jun 24 21:29
    sukanyaparashar commented #5087
  • Jun 24 21:27
    cds-amal synchronize #5230
  • Jun 24 21:27

    cds-amal on awol

    add dependency-check script provider: add missing dep events: add missing deps and 11 more (compare)

  • Jun 24 21:13
    lsqproduction synchronize #5192
  • Jun 24 21:13

    lsqproduction on dbkit

    db-kit: coerce web3-core transa… add web3-core to dev dep decoder:add type, maxfeePerGas,… (compare)

  • Jun 24 20:24
    haltman-at edited #5232
  • Jun 24 20:23
    haltman-at opened #5232
  • Jun 24 20:02
    cds-amal commented #5230
  • Jun 24 19:40
    nextmove commented #5220
  • Jun 24 19:29
    haltman-at commented #5230
  • Jun 24 19:28
    haltman-at commented #5230
  • Jun 24 19:13
    eggplantzzz commented #5230
  • Jun 24 19:12
    eggplantzzz commented #5230
"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;
npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_rsize_t.h:31:9: error: unknown type name '__darwin_size_t'
npm ERR! typedef __darwin_size_t        rsize_t;
npm ERR!         ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 20 errors generated.
npm ERR! make: *** [Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.2.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/17.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown
npm ERR! gyp ERR! node -v v17.4.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
What can i check to get this resolved? Any help is much appreciated. Thanks!
Zachary Becker
When writing tests using solidity, how do I access the addresses of the accounts that are setup automatically in ganache? In javascript, they are passed as an array to the test, is there something equivalent I can do in solidity?