Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid character at offset #889

Open
TimDaub opened this issue Dec 14, 2021 · 1 comment
Open

invalid character at offset #889

TimDaub opened this issue Dec 14, 2021 · 1 comment

Comments

@TimDaub
Copy link
Contributor

TimDaub commented Dec 14, 2021

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

@TimDaub
Copy link
Contributor Author

TimDaub commented Dec 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant