Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
165 views

Unknown key "viaIR"

Unknown key "viaIR" Error HH600: Compilation failed I'm encountering the above error when I try to compile. Here is my hardhat.config.ts import { HardhatUserConfig } from "hardhat/...
Ruwaifa Tahir's user avatar
0 votes
2 answers
577 views

Make Uniswap v2 swap through inline assembly

I'm trying to make swap tokens in smart contract using Uniswap V2. My main goal is to make part where you need to work with Uniswap router as assembly block. I'm not good in assembly, so I need your ...
Fuga14's user avatar
  • 23
2 votes
1 answer
229 views

How to deploy .yul contract with Hardhat?

I would like to deploy a contract written in pure Yul with Hardhat but I'm not sure how to do it. Is there some plugin for it, or do I just need to add special fields to the hardhat.config.js file? ...
Kuly14's user avatar
  • 362
2 votes
1 answer
2k views

How does console.logging work (e.g. Foundry's Console.sol)?

The main block of code in Forge's Console.sol is address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { ...
Ryan Sea's user avatar
  • 668
3 votes
1 answer
771 views

Why do I still get stack too deep error?

According to this blog using Solidity 0.8.13+ should eliminate the stack too deep error in most cases, however I'm still experiencing in both brownie and hardhat. I've added the following to my ...
MShakeG's user avatar
  • 1,855
1 vote
1 answer
232 views

Is it possible for the Solidity compiler to remove an external call?

I am experiencing a weird situation where it seems that the Solidity compiler (or optimizer) is removing an external call. I am performing an ERC20 token transfer on forked mainnet using Hardhat. From ...
Bobface's user avatar
  • 385