1) “before each” hook for “deploys a contract” in basic solidty contract testing
I am trying to test my solidity contract but it is not working. Please help.
solidity sepolia test, the balance does not change after the function is called, add once is succ
solidity
I get this error below when I run “forge test” on terminal for FundMe.sol contract
forge test or forge coverage
Dictionaries in Solidity
I’m new to Solidity and trying to understand how to work with dictionaries or mappings. In other programming languages, I often use dictionaries to store key-value pairs, but I’m not sure how to do this in Solidity.
transaction run out of gas limit when opreation the value of mapping
here is my code
Trouble Running Echidna on a Contract Requiring Constructor Argument
I’m encountering an issue while trying to run Echidna on a smart contract that requires a constructor argument. Despite several attempts, I haven’t been able to provide the argument successfully.
reentrancy hack example by solidity and transfer failed
I deployed EtherStroage and store 2 ether in it
ERC20: Transfer amount exceeds allowance when trying custom token
I am new to Solidity and trying out this contract on a custom test-net chain:
How to ensure the winner of lottery smart contract doesn’t pay the gas fee?
I have a lottery smart contract, essentially a coinflip between two participants. Players can deposit into the contract and once we have two players, anyone can call the bet() function. This means that the gas fee relies on the person who called the method. How do I get the gas fee of that instance of running the function and refund the person who won if they were the one to pay the gas fee (and place this cost on the loser). This is the codes basic structure currently, is it possible for me to see how much gas the transaction cost/will cost?