Skip to content
Advertisement

Tag: ethereum

Error HH8: There’s one or more errors in your config file: * Invalid account: #0 for network: mumbai – Expected string, received undefined

Error HH8: There’s one or more errors in your config file: Invalid account: #0 for network: mumbai – Expected string, received undefined Invalid account: #0 for network: mainnet – Expected string, received undefined To learn more about Hardhat’s configuration, please go to https://hardhat.org/config/ Neither two previous answers worked for me: * Invalid account: #0 for network: mumbai – Expected string,

Decode constructor arguments in solidity

I playing Ethernaut Level 8. The goal is to get access to the private password state variable and unlock the contract. I know one could use await contract.unlock(await web3.eth.getStorageAt(contract.address, 1));, but I want to find the password decoding the input data of the contract creation. Here is the contract. I tried await contract.unlock(“f94b476063b6379a3c8b6c836efb8b3e10ede188”) but that didn’t work. Answer If the

Supply ETH to Aave through solidity

I’m trying deposit into Aave V2 Contract Aave’s Code Examples I have code which consumes this like so: When attempting to supply, Metamask displays an error: ALERT: Transaction Error. Exception thrown in contract code. And just a simple button to call it in html: I’m running ganache ganache-cli –fork https://mainnet.infura.io/v3/{{MyProjectId}} The only error I see in the console is: Transaction:

Not including ‘gas’ or ‘gasPrice’ attributes in the ‘options’ object inside of a send() call

Does anyone know what the send() function call to a smart contract method defaults to when you don’t specify gas or gasPrice? Does it automatically allocate sufficient gas and calculate the current average gasPrice? And are those attributes always optional or are there situations where including either one is mandatory? Answer From the documentation, both gas and gas seem to

Advertisement