You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you ensured that all of these are up to date?
This repo
Any dependencies (according to the package.json)
What command(s) is the bug in?
No response
Operating System
None
Describe the bug
building a test / module that requires --via-ir doesnt work with modulekit.
// SPDX-License-Identifier: UNLICENSEDpragma solidity^0.8.13;
import {Test} from"forge-std/Test.sol";
import {RhinestoneModuleKit, ModuleKitHelpers, AccountInstance} from"modulekit/ModuleKit.sol";
contractPocisRhinestoneModuleKit, Test {
using ModuleKitHelpersfor*;
AccountInstance internal instance;
function setUp() public {
instance =makeAccountInstance("foo");
}
function test_foo() public {}
}
throws this error
Error: Compiler run failed:
Error: Yul exception:Cannot swap Variable var_data_57195_offset with Variable _1: too deep in the stack by 5 slots in [ var_operation RET var_data_57195_offset var_data_57195_length var_signatures_57210_mpos var_signatures_57210_mpos var_to var_refundReceiver var_gasToken var_gasPrice var_baseGas var_safeTxGas var_value var_data_57195_offset var_to var_refundReceiver var_value var_gasToken var_gasPrice var_baseGas var_safeTxGas var_operation var_data_57195_length _1 ]
No memoryguard was present. Consider using memory-safe assembly only and annotating it via 'assembly ("memory-safe") { ... }'.
YulException: Cannot swap Variable var_data_57195_offset with Variable _1: too deep in the stack by 5 slots in [ var_operation RET var_data_57195_offset var_data_57195_length var_signatures_57210_mpos var_signatures_57210_mpos var_to var_refundReceiver var_gasToken var_gasPrice var_baseGas var_safeTxGas var_value var_data_57195_offset var_to var_refundReceiver var_value var_gasToken var_gasPrice var_baseGas var_safeTxGas var_operation var_data_57195_length _1 ]
No memoryguard was present. Consider using memory-safe assembly only and annotating it via 'assembly ("memory-safe") { ... }'.
--> lib/modulekit/node_modules/@safe-global/safe-contracts/contracts/Safe.sol:33:1:
|
33 | contract Safe is
| ^ (Relevant source part starts here and spans across multiple lines).
zeroknots
changed the title
Projects using ModuleKit can not be complied with via-ir
[RHI-1426] Projects using ModuleKit can not be complied with via-ir
Dec 9, 2024
Have you ensured that all of these are up to date?
package.json
)What command(s) is the bug in?
No response
Operating System
None
Describe the bug
building a test / module that requires --via-ir doesnt work with modulekit.
throws this error
RHI-1426
The text was updated successfully, but these errors were encountered: