2
votes
Accepted
How to deploy a Safe on Hardhat
We run some Safe tests using Hardhat Network in our project. Here is the example: safe.spec.ts#L212
You have to deploy 3 contracts:
GnosisSafeProxyFactory.sol
GnosisSafe.sol
MultiSend.sol
Then you ...
2
votes
1
vote
Cannot read properties of null (reading 'constructor') Etherjs error
Just change in the second line to const contract = new ethers.Contract so you'll call class constructor.
And no need in await on second line as constructor in synchronous
1
vote
Error HH8: There's one or more errors in your config file: * Invalid account: #0 for network: sepolia - private key too short, expected 32 bytes
sepolia: {
url: `${process.env.API_URL}`,
accounts: [`0x${process.env.PRIVATE_KEY}`], //No need to concatenate '0x"
}
The issue is from the configuration above. Firstly, there's no need to ...
1
vote
Hardhat - HardhatEthersProvider.resolveName is not implemented
You are calling constructor on wrong way.
constructor(
address _lzEndpoint,
string memory _name,
string memory _symbol,
uint8 decimal
) OFTWithFee(_name, _symbol, ...
1
vote
Following the Hardhat tutorial, I get this error: TypeError: ethers.getSigners is not a function
As per MadBreaks comment, Hardhat is better organised to keep things internal (ie. provide defaults) including not needing to bring in ...-waffle yourself.
You should just require this in the hardhat....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
hardhat × 1290solidity × 603
ethers.js × 322
hardhat-deploy × 198
testing × 149
javascript × 83
contract-deployment × 76
chai × 66
contract-development × 58
blockchain × 49
openzeppelin × 49
unittesting × 44
test × 43
web3js × 42
erc-20 × 40
uniswap × 40
typescript × 39
ether × 36
nft × 33
mocha × 33
etherscan × 32
metamask × 31
chainlink × 30
react × 29
nodejs × 26