Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:25
    haydenyoung commented #3951
  • Apr 12 18:40
    eggplantzzz review_requested #3972
  • Apr 12 18:40
    eggplantzzz review_requested #3972
  • Apr 12 18:40
    eggplantzzz review_requested #3972
  • Apr 12 18:40
    eggplantzzz review_requested #3972
  • Apr 12 18:40
    eggplantzzz unassigned #3972
  • Apr 12 18:40
    eggplantzzz unassigned #3972
  • Apr 12 18:40
    eggplantzzz unassigned #3972
  • Apr 12 18:40
    eggplantzzz unassigned #3972
  • Apr 12 18:01
    eggplantzzz commented #3930
  • Apr 12 16:05
    eggplantzzz assigned #3972
  • Apr 12 16:05
    eggplantzzz assigned #3972
  • Apr 12 16:05
    eggplantzzz assigned #3972
  • Apr 12 16:05
    eggplantzzz assigned #3972
  • Apr 12 15:34
    eggplantzzz opened #3972
  • Apr 12 15:32

    eggplantzzz on develop-log

    If --log is passed with truffle… (compare)

  • Apr 12 15:01
    eggplantzzz commented #3125
  • Apr 12 13:38
    wbt commented #3125
  • Apr 12 13:29
    waycoolman619 commented #524
  • Apr 12 13:08
    fkirc edited #3971
Hayden Young
@haydenyoung

anyone seen this bizarre error thrown up by ganache if forking:

(node:352109) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'programCounter' of undefined
    at c.combine (/Development/minermint/miner-contracts/node_modules/ganache-cli/build/ganache-core.node.cli.js:2:161883)
    at new c (/Development/minermint/miner-contracts/node_modules/ganache-cli/build/ganache-core.node.cli.js:2:161279)
    at Function.c.fromResults (/Development/minermint/miner-contracts/node_modules/ganache-cli/build/ganache-core.node.cli.js:2:162421)
    at e.exports (/Development/minermint/miner-contracts/node_modules/ganache-cli/build/ganache-core.node.cli.js:53:1405579)
(node:352109) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:352109) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
eth_getBlockByNumber

Only seems to happen when I fork kovan. Thought it might be because it is deploying a contract there that already exists. However, I have redeployed other contracts without the same problem (seems to be limited to a couple of my contracts) and changing the contract doesn't have any effect (E.g. adding another method).

The problem results in the forked blockchain becoming unresponsive and any subsequent deployments just time out.

Ayush Tiwari
@ayusht11

For a large number of tests where a lot of them are using web3, truffle test cases hang indefinitely for me after v5.1.35:

Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:    18.04
Codename:    bionic

Other environment settings:

Node: v12.16.1 ​(I have also tried with v14)
npm 7.7.4
Truffle v5.2.6 (core: 5.2.6)
Solidity - 0.5.9 (solc-js)
Node v12.16.1
Web3.js v1.2.9

It starts working if I switch to truffle v5.1.35:

Truffle v5.1.35 (core: 5.1.35)
Solidity - 0.5.9 (solc-js)
Node v10.15.0
Web3.js v1.2.1

I think it can also be a problem with web3 version latched with truffle. As I see version with web3 v1.2.1 works well, but v1.2.9 does not.

can someone help?
An open issues which could be causing this: trufflesuite/truffle#3509
Mark Virchenko
@borseno

Hey guys,
I am compiling the same smart contract file on windows and linux, on windows it compiles successfully and produces the correct ABI, whereas on linux, it compiles successfully, yet the ABI misses a lot of definitions, for example constructor definition.
The contract file is: https://github.com/team-toast/Foundry/blob/master/smart-contracts/bucket-sale/contracts/BucketSale.sol
On linux, it produces the following ABI: https://pastebin.com/5SW4vBkv, and you can see that it misses constructor as an example. Whereas on windows everything is in place.
Both compilers are of the same version and have the same hash.

The only difference is truffle and node versions.

Linux:
Truffle v5.3.0 (core: 5.3.0)
Solidity - 0.5.17 (solc-js)
Node v10.19.0
Web3.js v1.2.9

Windows:
Truffle v5.2.6 (core: 5.2.6)
Solidity - 0.5.17 (solc-js)
Node v12.18.4
Web3.js v1.2.9

Mark Virchenko
@borseno
I also just tried to compile once again on windows, and it produced the same ABI as on linux - i.e the wrong one, without the constructor. I'm not sure what changed really, as I didn't modify any settings or updated anything. I just "truffle compile" once again in a day
Mark Virchenko
@borseno
Also, do you guys know how to set-up time increase each time a block mines? Is it possible at all?
Anupam Kumar
@Anupam1112007_twitter

When truffle migrations/test directories are empty, you can show a message which says so.

yesterday, someone(me) configured the truffle migrations to another folder and was thinking why truffle migrations is not working.

Mark Virchenko
@borseno
the problem is not with migrations, but with the way truffle compiles ABI from .sol file. Or is it dependent on the migrations? @Anupam1112007_twitter
KaiRo
@kairo:mozilla.org
[m]
AFAIK the constructor is not supposed to be part of the ABI
where did you get the impression that it should be there?
phalexo
@phalexo
Can Truffle use geth.ipc instead of http to connect to a geth node? What's the appropriate config for that? Thanks.
Owen Cruse
@ocruse7
Hey guys, I am pretty new to blockchain development, and started using Ganache to run a test chain. It was working fine up until yesterday, but all of a sudden it will only boot straight to the settings on quickstart and won't allow me to change the hostname from 0.0.0.0. Though when running the truffle console on my WSL terminal, it is able to create a test chain on 127.0.0.1:9545 just fine. I feel like this may just be something very simple to fix but I can't find any resources to help, has anyone here encountered something similar or knows a solution?
Fábio Oliveira
@fabiomig
Hey
Guys, i dunno whats wrong with my truffle run verify
it worked like charm all the time
now im having this problem
image.png
its something wrong with bscscan?
i mean i didnt change nothing
Nabil Kechiche
@Nighty13
image.png
hello , any reason why truffle unbox adrianmcli/truffle-next
gives me this error?
1 reply
ProjectGoMad
@ProjectGoMad

Hi all,

Bit of a noob here so bare with me.
How do I actually switch wallet addresses with the ganache UI application? All the examples that I find are all with ganache-cli which is not included with the installer from https://www.trufflesuite.com/ganache
I can add the accounts to Metamask easily enough but how do I let Truffle environment know that I want to use those various wallet addresses?
Sorry if this seems easy, all the howtos I can find seem rather old.

Thank you.

3 replies
Ray
@rayeaster
Hello, could someone shed a light why we get error Error: Returned error: missing trie node in ganache fork for Binance Smart Chain ? Typically it would work after a new fork is launched, but after a while (not sure how many blocks/tx mined), the it will start throw this error. We use rpc endpoint as listed in https://docs.binance.org/smart-chain/developer/rpc.html
Ray
@rayeaster
this is how we launch the local fork: ganache-cli --fork https://bsc-dataseed1.ninicoin.io --chainId 56 -p 8548 --host 0.0.0.0 --defaultBalanceEther 100000 --db /data/bscfork/database
Hayden Young
@haydenyoung
@rayeaster I think it has something to do with history. i was getting a different error when forking ethereum but it was a similar issue; would work and then would start throwing "state" errors. i think it's caused by limits placed on how much you can retrieve when forking from platforms such as infura. these services probably provide some kind of level up where you can reduce these issues but I haven't looked into it. I'm sure there is someone here who is far more knowledgeable about this issue and can provide a better diagnosis.
Sunday Ajiroghene
@Ajioz
Hello All,
Nice to be here... I am learning how to deploy my first dAPP. Guess what, I am facing tons of bugs in the deployment, the reason being that the tutorial point I am following is using the older version of truffle. The App I have been struggling to deploy is the Election app, has anyone here developed the same using the latest version of truffle? Your guide would go a long way to helping me succeed.
brare
@brare

Hey all! I'm having issues with proxyAdmin and proxyUpgrade.

I have the followign contract deployed

contract MyContract {
  uint aVar;
}

and I'm trying to upgrade it to:

contract NewContract {
  uint deadline;
}

contract MyContract is NewContract {
  // the same
  uint aVar;
}

I get the error related to stroage layout changing since the inheritted contract loads into storage before the actual deployed contract

1 reply
does anyone have a solution for this or is it not possible?
Ray
@rayeaster

@rayeaster I think it has something to do with history. i was getting a different error when forking ethereum but it was a similar issue; would work and then would start throwing "state" errors. i think it's caused by limits placed on how much you can retrieve when forking from platforms such as infura. these services probably provide some kind of level up where you can reduce these issues but I haven't looked into it. I'm sure there is someone here who is far more knowledgeable about this issue and can provide a better diagnosis.

Thanks @haydenyoung for replying. I understand that Infura got paid service like archive node/data in case you need historical data. But as you could see, I was trying to fetch from Binance Smart Chain, there is no Infura in my configuration.

StateU
@StateU10_twitter
@nigeon_gitlab did you run poa with truffle?
Michael VanDaniker
@mvandani
I started a deployment of a contract to mainnet and accidentally had a gas price that's too low to get mined anytime soon. If I rerun the deployment with a higher gas price, will Truffle replace the pending transaction by reusing the same nonce or will it submit a new transaction with the next nonce?
4 replies
Valters Brūns
@vvolis_twitter
Has anyone encountered truffle deploy --dry-run reporting lower balance than there actually is on the acc?
I have ~1ETH, contract deployment reports 4134555 gas used (~ 0.56 ETH) and fails as supposedly my balance is only 0.50ETH, but it isn't :D
Are there some hidden costs that effectively double the price but don't show up?
ruslanasa
@ruslanasa
hi, does anybody have issue with latest truffel + hdwallet + infura (free) deploy of contract to rinkeby network? when I try migration contract deployment never stops (was running whole night), I see one transaction in etherscan, but nothing else... does not throws errors, does not expires, just shows blocks and seconds forever (node 10, truffle 5.3, hdwall 1.2.6, infura , rinkeby net)
willaim
@willaim38363881_twitter
0x014169558ba0Ed96C399617C5646BDde3D66562E
bold
@AboldUSER
Is there info somewhere on the unlocked addresses that truffle provides. I am trying to understand how addresses can be unlocked vs locked, so appreciate any info.
kdefilip
@kdefilip
Anyone else having trouble installing Truffle on ubuntu 18?
Alan Jones
@skyphyr
hi all - does the drizzle truffle box still work? I've tried with both nodejs 15.14.0 and 14.16.1 under Ubuntu 20 in the WSL, but there's some kind of gyp compilation that fails due to a signature mismatch. /.cache/node-gyp/14.16.1/include/node/node.h:758:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] assuming that's the relevant part of the log - there's a lot and I've not touched node before at all, so purely guessing from the c++ in there.
arproofsys
@arproofsys

hi everyone,

i'm trying to transfer the ownership of an existing contract to a new contract on my initial_migration.js

is there a way to properly load the existing contract so I can do <existing token contract>.transferOwnership(<new contract address>)?

Hamzah Khan
@khamzah22_twitter
Hello everyone,
How do I fund my address with test ETH? Not sure where to find it in my truffle project.
"Migrations" -- insufficient funds for gas * price + value. getting this error
Lauri Peltonen
@microbecode
get it from a faucet for the network
swkim109
@swkim109
@skyphyr I tested truffle unbox drizzle now, and nothing wrong in my nodejs 14.15.1(on Windows 10)
MuhammadSajid404
@MuhammadSajid404
hi everyone,
Yash Mehta
@aster2709
Screenshot from 2021-04-12 10-38-07.png
my truffle installation gets stuck here
2 replies
please help
Alan Jones
@skyphyr
@swkim109 thanks - what were your versions of other dependencies?
7 replies
Hayden Young
@haydenyoung
@rayeaster I don't really have any experience with bsc but i was wondering if it has a similar setup to ethereum in that you query a 3rd party api to interact with the underlying blockchain, hence I'm wondering if, since bsc is just a fork of ethereum whether the api functions in a similar way and therefore the same issue can occur with bsc equivalent of infura.