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 79512
2 votes

Transaction Reverted when attempting to withdraw from aave

I had the same error Transaction reverted: function returned an unexpected amount of data This happened when i called a function on an external contract that returns bytes32 and i assigned the retur …
Yamen Merhi's user avatar
8 votes

Hardhat Test returns transaction instead of return value

To get the return value you should add callStatic to it. > const shareTokenAddress = await liqminter.connect(actorA).callStatic.createPair([...]) callStatic is a read-only operation and will not co …
Yamen Merhi's user avatar
5 votes
Accepted

Why is emitting an event considered as state-changing?

Events don't change the state of the contract where they are emitted but they change the state of the whole blockchain. In simple terms, a log (emitting an event) will make a change in the Transaction …
Yamen Merhi's user avatar
4 votes
Accepted

Test fails with custom error despite having "MyCustomError"

Check the hardhat config file to see which package to use. I assume it's @nomicfoundation/hardhat-toolbox. …
Yamen Merhi's user avatar