dapphub / dapphub/dapptools

`unexpected symbolic argument` for prove test with single `address` argument

Open
#819 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.1k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

I have a simple test function that takes a single address arg:

```solidity
function proveConnectingExecutionManager(address newExecutionManager) public {
registry.connectExecutionManager(newExecutionManager);
assertEq(registry.L1_NovaExecutionManagerAddress(), newExecutionManager);
}
```

https://github.com/Rari-Capital/nova-invariants/blob/4d1a9c9a4aa929314e82da79b6d52c980506c57e/src/Registry.t.sol#L31

The `connectExecutionManager()` function is simple:

```solidity
address public L1_NovaExecutionManagerAddress;

function connectExecutionManager(address newExecutionManagerAddress) external requiresAuth {
L1_NovaExecutionManagerAddress = newExecutionManagerAddress;
emit ExecutionManagerConnected(newExecutionManagerAddress);
}
```

https://github.com/Rari-Capital/nova/blob/3252ceea5e50d3c29be69861b77908a5b4f28815/contracts/L2_NovaRegistry.sol#L39-L48

Why is this failing with `unexpected symbolic argument`:

```
hevm: unexpected symbolic argument
CallStack (from HasCallStack):
error, called at src/EVM/Symbolic.hs:42:14 in hevm-0.48.1-68JBNYehi12HotjGf8Zowl:EVM.Symbolic
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.