New answers tagged truffle
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 ...
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;
}
...
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');
...
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 ...
Top 50 recent answers are included
Related Tags
truffle × 2931solidity × 1219
web3js × 477
truffle-migration × 335
contract-development × 235
ganache × 218
go-ethereum × 214
truffle-test × 208
truffle-contract × 202
testing × 188
contract-deployment × 181
testrpc × 181
javascript × 144
metamask × 140
truffle-deployment × 116
blockchain × 106
remix × 84
nodejs × 78
react × 78
truffle-compile × 75
dapps × 66
ropsten × 64
dapp-development × 59
infura × 59
contract-debugging × 56