Skip to content

test failing when defining transient variables in solidity #897

@gabririgo

Description

@gabririgo

When running solidity coverage using transient storage in solidity (supported by solc v0.8.28) I get the following error:

Error in plugin solidity-coverage: Error: Could not instrument: protocol/extensions/adapters/AUniswapRouter.sol. (Please verify solc can compile this file without errors.) extraneous input 'tokensInCount' expecting {';', '='} (44:30)

Error happens here:
https://github.com/RigoBlock/v3-contracts/blob/9a0274b93fa9f0ca0046350227afb866e810782f/contracts/protocol/extensions/adapters/AUniswapRouter.sol#L44

Steps to reproduce:

  • run rigoblock v3-contracts repo from feat/uniswap v4 branch, run yarn coverage
  • alternatively, define a transient storage variable in a project, the error will be returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions