Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 108605
0 votes

Hardhat Testing: Error: Contract with a Signer cannot override from (operation="overrides.fr...

I found the solution: await deployedContract.connect(addr1).setMessage("Hello from User 1");
Fede's user avatar
  • 105
0 votes
1 answer
252 views

check balance before and after transaction with chai

I'm writing the test cases for a contract, and I have a problem trying to match the balance, because of the transaction gas. what is the correct way to do it? it("should allow the owner of the campai …
Fede's user avatar
  • 105
0 votes

check balance before and after transaction with chai

Solve it. I was calculating the gas used wrong way const gasUsed = receipt.effectiveGasPrice.mul(receipt.cumulativeGasUsed)
Fede's user avatar
  • 105
0 votes
3 answers
1k views

Error: Transaction reverted: function selector was not recognized and there's no fallback no...

campaign.target) { campaign.status = CampaignStatus.Successful; emit CampaginSuccessfullyFunded(campaign); } payable(address(this)).transfer(amount); } and the test case in hardhat using chai
Fede's user avatar
  • 105
0 votes
1 answer
341 views

Hardhat Testing: Error: Contract with a Signer cannot override from (operation="overrides.fr...

I'm using hardhat and chai library. … Solidity contract: function setMsg(string memory _message) public{ message = _message; } and my testing file is this: const { expect } = require("chai"); const { ethers } = require("hardhat …
Fede's user avatar
  • 105