dapptools
                                
                                 dapptools copied to clipboard
                                
                                    dapptools copied to clipboard
                            
                            
                            
                        invalid character at offset
dapp: Predeploying test library src/StateTree.sol:StateTree at 0x0DdeDfFe2789df61F5f76479464F568334414389
hevm: invalid character at offset: 1310
CallStack (from HasCallStack):
  error, called at src/EVM/Solidity.hs:538:13 in hevm-0.48.1-68JBNYehi12HotjGf8Zowl:EVM.Solidity
I looked into #851 and #802 but I couldn't really find anything helpful there. I did some vim magic :%s/bit(/bitmap(/g before this error started popping up and so naturally, I'm now trying to understand if I've mistyped somewhere. Is the error indicating that? For me e.g. it'd be helpful to know what my file says at offset 1310 and how that offset is being calculated. If it'd then lead me to e.g. where the problematic code is.
Can someone help?
Edit: This is the state of the repo where the error is happening when doing dapp test -vv: https://github.com/rugpullindex/indexed-sparse-merkle-tree/tree/5f7f0d968a070f0a8611fdeb1597b4f1f6070216
Actually this definition caused the issue:
function bitmap(uint256 index) public pure returns (uint8) {
I've now adjusted it to
function bitmap(uint256 index) internal pure returns (uint8) {
As I think the error message for could be improved, I'll leave this ticket opened until resolved.