As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

0 votes

Source File requires different compiler version

Just add this : compilers: { solc: { version: "^0.4.20" } } Where "^0.4.20" is the version of the compiler you want to use. So your truffle config file should look like this ...
ussef's user avatar
  • 1
0 votes

Unit testing a Solidity Library function with a struct memory argument

What about a simple approach? // SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "hardhat/console.sol"; library BrickLib { struct ECSignature { uint8 v; } ...
Rob Hitchens's user avatar
  • 54.3k
1 vote

Deploy contract on live testnet using private key + truffle

I think it is better for you to use the official HDWalletProvider instead of the PrivateKeyProvider. For that, you need to include it: const HDWalletProvider = require('@truffle/hdwallet-provider'); ...
Guilherme Sampaio's user avatar
0 votes

Console Goerli not functioning on Truffle - This version of µWS is not compatible with your Node.js build

the same error happened to me. I found the source code below: Then I switched to node12 to match the Node Module 72, and it worked. So you also need to switch to the right node version recording to ...
cyann's user avatar
  • 11

Top 50 recent answers are included