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
Error: Unexpected type as array index
╭─[contracts/L1/L2OutputOracle.sol:296:16]
│
296 │ return l2Outputs[getL2OutputIndexAfter(_l2BlockNumber)];
│ ────────────────────────┬───────────────────────
│ ╰───────────────────────── Expected single expr evaluation of index expression, but was: (Single(NodeIndex(2871)), Multi([Single(NodeIndex(2864))])). This is a bug. Please report it at github.com/nascentxyz/pyrometer.
The command I'm using is:
cd packages/contracts-bedrock
pyrometer contracts/L1/L2OutputOracle.sol --remappings remappings.txt
Repro
A minimal test case is:
contract Test28 is Test {
bytes32[] public arr;
constructor() {
arr.push(hex"1234");
arr.push(hex"5678");
}
function getNum() public pure returns (uint256) {
return 1;
}
function test_pyrobug() external returns (bytes32) {
return arr[getNum()];
}
}
The text was updated successfully, but these errors were encountered:
Version:
Issue
This line in our repo triggers an error.
The command I'm using is:
Repro
A minimal test case is:
The text was updated successfully, but these errors were encountered: