Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 07:39
    monish52 commented #3728
  • 06:37
    haltman-at closed #4478
  • 06:37
    haltman-at commented #4478
  • 06:36
    haltman-at edited #4491
  • Dec 04 15:39
    andrewpros commented #4479
  • Dec 04 15:37
    andrewpros commented #4479
  • Dec 04 15:36
    andrewpros commented #4479
  • Dec 04 05:04
    haltman-at synchronize #4484
  • Dec 04 05:04

    haltman-at on solid-snake

    Change uint256 to shorter type (compare)

  • Dec 04 00:11

    lsqproduction on rebase-win

    compile-solidity: change test s… compile-solidity: wip clean up (compare)

  • Dec 03 21:31
    haltman-at review_requested #4488
  • Dec 03 21:04
    eggplantzzz synchronize #4483
  • Dec 03 21:04

    eggplantzzz on ganache-update

    pin ganache in truffle and upda… (compare)

  • Dec 03 20:57
    haltman-at edited #4491
  • Dec 03 20:56
    haltman-at edited #4491
  • Dec 03 20:56
    haltman-at synchronize #4491
  • Dec 03 20:56

    haltman-at on whitelist-tx-type

    Add ENS support for access lists Add test of ENS support for acc… (compare)

  • Dec 03 20:52

    lsqproduction on rebase-win

    compile-solidity: change test s… wip (compare)

  • Dec 03 19:52
    haltman-at edited #4491
  • Dec 03 19:52
    haltman-at edited #4491
Having multiple contracts_build_directory: in the config?
how can we search for a published transaction on the blockchain networks ??
2 replies
Emanuel Ferreira
hey, the truffle/gananche have the wrong block.timestamps?
1 reply
Become Rare

Hi all! I've forked an archive node with ganache-cli with --secure and --unlock "<creator_address>" to the block before a certain contract is deployed.
Then, I try to "impersonate" the creator of the contract and deploy the contract with truffle migrate like deployer.deploy(<contract>, {from: <creator_address>});
And I get this error: sender account not recognized.

Anyone know how to fix this?

9 replies
Hello. I am trying to compile my contracts. All are using the following:
pragma solidity 0.8.0;
in the truffle-config.js I specified the compiler version like so:
compilers: {solc: {verions: "0.8.0"}}
I still get the following error message
+Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify "pragma solidity 0.8.0".
why is this happening 😔
2 replies
solved it. I just had a typo 😬. bye

hey all, when i try and fork bsc mainnet i get the following issue

ganache-cli -f https://bsc-dataseed.binance.org/
Ganache CLI v6.12.2 (ganache-core: 2.13.2)
Error: The fork provider errored when checking net_version: Invalid JSON RPC response: ""
    at /usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:2093582
    at Object._fireError (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:4:67075)
    at s (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:4:114003)
    at a (/usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:2108912)
    at /usr/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:55:2093154
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

is this related to my proxy? i can post json to bsc with cURL

curl -X POST "https://bsc-dataseed.binance.org/" --data '{"method":"eth_blockNumber","params":[],"id":56,"jsonrpc":"2.0"}' -H "Content-Type: application/json" {"jsonrpc":"2.0","id":56,"result":"0xc43139"}

Hello, anyone got any issue when trying to use SMTChecker ? I have modified my truffle-config.js file in order to use SMTChecker but it looks like it is not called when compiling a smart contract (actually I am trying to compile https://docs.soliditylang.org/en/latest/smtchecker.html#overflow but do not get any warning/error as expected....
I'm trying to get a basic app working with Truffle, Ganache, and Drizzle. I'm following this tutorial: https://www.youtube.com/watch?v=QH_yLPYQEs4 but when I try npm start I can see the Drizzle object but it says drizzleStatus initialized is false and I can't see any Ganache accounts or balances. What can I do to bugtest this issue?
My test contract shows up in the Drizzle object but it also says initialized is false even though I can see it in my Ganache server.
It's the TypeError: Cannot read property 'slice' of undefined error again! I tried changing config solidity versions to 0.8.7, 0.8.10 same error:
# truffle deploy                                                                                                                                                   

Compiling your contracts...
TypeError: Cannot read property 'slice' of undefined
    at convertJsFunctionToWasm (/root/.config/truffle/compilers/node_modules/soljson-v0.8.10+commit.fc410830.js:1:4130)
    at addFunction (/root/.config/truffle/compilers/node_modules/soljson-v0.8.10+commit.fc410830.js:1:5488)
    at runWithCallbacks (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/node_modules/solc/wrapper.js:143:1)
    at compileStandard (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/node_modules/solc/wrapper.js:207:1)
    at Object.compileStandardWrapper [as compile] (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/node_modules/solc/wrapper.js:214:1)
    at Object.parseImports (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/parser.js:41:1)
    at parseImports (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-solidity/profiler/loadParser.js:24:1)
    at Object.<anonymous> (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/getImports.js:23:1)
    at Generator.next (<anonymous>)
    at /root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/getImports.js:8:1
    at new Promise (<anonymous>)
    at exports.modules.824302.__awaiter (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/getImports.js:4:1)
    at Object.getImports (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/getImports.js:19:1)
    at /root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/resolveAllSources.js:58:1
    at Generator.next (<anonymous>)
    at fulfilled (/root/.nvm/versions/node/v12.16.3/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/resolveAllSources.js:5:42)
Truffle v5.3.9 (core: 5.3.9)
Node v12.16.3
Truffle has been passing the buck about this as a Solidity error: but according to this thread it's a truffle issue ethereum/solidity#11489
Truffle >= 5.3.3
In trufflesuite/truffle#3975 the dependency on solc has been changed from ^0.6.0 to 0.6.0. Bug was fixed in 0.6.9 so you effectively reverted to the buggy older version.
Luis F. Escobar
Hey everyone!
I am using ganache and web3.py
I submitted this issue to the web3.py repo but it is not very active and have received 0 help
Wondering if anyone has anything with regrads to the issue I am facing
Txpool methods not working with ganache or infura
Hello I'm using Drizzle atm. Would like to see what if the provider doesn't have eth_subscribe method, any workaround we can bypass to getBlockHeaders? Thanks.
Denica Gateva
Hi I have a question how to make a truffle work
Elementa | NFT Novel & P2E Game
Hey all, I have deployed an Upgradable contract, the ProxyAdmin and TransparentUpgradeableProxy self verified all ok. My Etherscan API key works and simple contract verification works. BUT when I try to verify the Implementation contract in this case called Rex - it just tells me it is already verified, giving me the Proxy contract as the address is tried to verify...
How can I verify the Implementation so those using my dapp can see the source code being used?

$ truffle run verify Rex --network rinkeby
Verifying Rex
Already Verified: https://rinkeby.etherscan.io/address/0x1dCd1EBd161e21e9Ab5f8ca669E77C247DD81eCA#code
Successfully verified 1 contract(s).

^ But this is not our Rex contract, it is just the proxy...


Hello all! Since a few weeks I have the problem that my truffle console crashes after a few minutes. Today it's only seconds until the console crashes. It's running agains ganache CLI, but I have the same problem with GANACHE app. It's both on Windows WSL2 and MacOS. Does anyone know this problem and may point me to a solution?

Ganache CLI v6.12.2 (ganache-core: 2.13.2)
Truffle v5.4.21 (core: 5.4.21)
Solidity - 0.8.6 (solc-js)
Node v16.9.1
Web3.js v1.5.3

truffle(development)> Error: Unhandled error. ({ code: -32000, message: 'header not found' })
    at new NodeError (node:internal/errors:371:5)
    at Web3ProviderEngine.emit (node:events:383:17)
    at Web3ProviderEngine.emit (node:domain:475:12)
8 replies
Hey guys, I am trying to deploy erc20 to mainnet. But it always failed after block number 50, even I set it to 4000 in truffle.config.js. How do I increase the block number exactly? Thanks
1 reply
Hi everyone, I have some trouble installing truffle on my windows.Can someone please help me . thanks
link is below.
1 reply
I'm following this guide for debugging smart contracts: https://www.trufflesuite.com/guides/debugging-a-smart-contract
I reached the point where I'm triggering an infinite loop, and I'm supposed to see an error about running out of gas, but instead the program just hangs there after eth_estimateGas is printed to the logs.
The only thing I did differently from the guide is updating the required compiler version in the sol file. Could that be the issue? Running on Windows 10, by the way.
1 reply
Im trying to install truffle on windows but get a cache miss and I noticed it was fetching a tgz file from npmjs even though its windows. I have node and git installed and when I use npm list -g it is only giving the package names instead of the full tree you would expect to see. Anyone run into this?
i don't know this . please help me
Become Rare
Hi! How can I call use --fetch-external programatically with this? https://github.com/trufflesuite/truffle/tree/develop/packages/debugger
Thoufeek Baber
helo..can anyone explain what is web3?
also can anyone recomend good tutorials on developing with truffle
web3 is a catch term for web apps that talk to a blockchain, run on a blockchain
I think take a look at https://www.trufflesuite.com/docs/truffle/quickstart to get started with truffle, but there are stacks of other tutorials available
George Kiknadze
I've got an issue with Polygon mainnet deployment
smart contract creation transaction is not taken by validators
any idea what could be an issue? Tried with various gas options but still nothing
⠸ Blocks: 88           Seconds: 184
Mac-Oya Makoya
Hie everyone. I discovered this thing today , accidentally actually.

ℹ 「wdm」: Compiled successfully.

I hope this will be a nice journey

Philip Scott
Hi folks - quick question, my organisation has a complicated scripted docker setup - one of which starts the ganache-cli docker image up. Is it possible to connect the nice GUI to an already-running server or am I stuck with figuring out the json-rpc to poke around in the blockchain it generates?