## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 09:18
marcpre opened #5153
• 09:04
jiamijiang commented #5108
• 08:57
jiamijiang commented #5108
• 08:49
Afrahdev opened #5152
• May 27 23:57
wbt commented #4825
• May 27 23:56
wbt commented #4825
• May 27 22:54
cds-amal commented #5087
• May 27 22:29
haltman-at commented #4900
• May 27 21:06
sukanyaparashar review_requested #5087
• May 27 21:06
sukanyaparashar review_requested #5087
• May 27 21:05
• May 27 20:34
sukanyaparashar synchronize #5087
• May 27 20:34

Add CodeNotSuppliedError, modif… reorganize how cli.js runs comm… reach POC for bundling individu… and 37 more (compare)

• May 27 20:30
sukanyaparashar synchronize #5087
• May 27 20:30

Add documentation for the param… (compare)

• May 27 19:14
kevinweaver opened #5150
• May 27 18:45
lsqproduction commented #4825
• May 27 18:44
lsqproduction closed #4825
• May 27 18:44
lsqproduction commented #4825
• May 27 18:41

lsqproduction on v5.5.16

Franky Limon Quamfy ( 🪞,🪞)
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.
contract.connect(otherAccount).doSomething()

Michel Brown
@michaelbrown429:matrix.org
[m]
Hi,guys. In truffle, can you tell me why you use unbox? is it really useful?
Michel Brown
@michaelbrown429:matrix.org
[m]
@wholespace: Who are you
Naruhito Takei
@wholespace:matrix.org
[m]
Hello Everyone.
swkim109
@swkim109
@michaelbrown429:matrix.org It is just boilerplate for dapp. There are many boilerplates like that.
Rayyan
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?
MichaelBrown0429
@MichaelBrown0429
Hello,guys
MichaelBrown0429
@MichaelBrown0429
@FreewayHeilig_twitter Before I also met similar occasion, everything not worked, so I reinstall npm. After that solved.
grimreaper619
@grimreaper619
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?
dmggcozzani
@dmggcozzani
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 Object.require (node:internal/modules/cjs/helpers:102:18)
Truffle v5.4.29 (core: 5.4.29)
Node v16.13.1
lanmower
@lanmower
hi there
lanmower
@lanmower
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
coin77
@coin77
How can I deploy multiple instances of the same contract?
2 replies
The second deployment replaces the first.

@tina1998612
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
mpoletiek
@mpoletiek:matrix.technomystics.com
[m]

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.

mpoletiek
@mpoletiek:matrix.technomystics.com
[m]
Disregard. I figured it out 😁
livelaughhodl
@livelaughhodl:matrix.org
[m]
Hi, does anyone know why truffle compile cannot find suitable configuration file on Windows 10 terminal?
Tahsin
@t4style
Hello
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
@lsqproduction
🎊 🎉 Check it out. Ganache v7 is out!!!! Read more about all the sweet new features here 👉 https://trufflesuite.com/blog/introducing-ganache-7
Charlton Davis
@charltondwiz
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?
cow99
@cow99:matrix.org
[m]
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
mpoletiek
@mpoletiek:matrix.technomystics.com
[m]
Hello all, I'm having some trouble installing ganache. Is it compatible with NodeJS 14.x?
Unfortunately I'm using Gentoo and portage doesn't have anything older than NodeJS 12.19.1
My profile installed nodejs 14.17.6
OguzhanBayir
@OguzhanBayir
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?
vegetaxing
Hey guys, I've posted a question on ethereum stackexchange; if someone could help me.
Why I can't push items into this array?
https://ethereum.stackexchange.com/questions/119667/why-i-cant-push-items-into-this-array
Alecharytoniuk
heyyy im trying to compile a test with truffle but its pop up this message
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
@apdan510
Alechary, do you have a public repo to take a closer look at this compiling issue?
Wahas Ali Mughal
@wahas-mughal

getting same error while installing truffle node version 16.13.1

tonmoyk988
@tonmoyk988
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 ?