Open a support ticket here: https://trufflesuite.zendesk.com/hc/en-us/requests/new
eggplantzzz on develop-log
If --log is passed with truffle… (compare)
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.
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.
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
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.
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
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
@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.
/.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.