Fail - Cannot read property 'absolutePath' of undefined
See original GitHub issueI’ve got this error when trying to verify my contract.
DEBUG logging is turned ON
Running truffle-plugin-verify v0.5.6
Verifying TestContract
Reading artifact file at /Users/tomp/Documents/Works/test_contract/build/contracts/TestContract.json
Retrieving constructor parameters from https://api-testnet.bscscan.com/api?apiKey=xxxxxxxxxxxxxxxxxxx&module=account&action=txlist&address=0x84fd8e42B66d6C6da9584FC3513Bb71F03Da7718&page=1&sort=asc&offset=1
Constructor parameters retrieved: 0x00000000000000000000000016d57feb62d87fd8aa1c534b64dba8513252b878000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000090ddd0e0387c719a367b2be6b001a333a30b85a9
Reading artifact file at /Users/tomp/Documents/Works/test_contract/build/contracts/Hasher.json
Cannot read property 'absolutePath' of undefined
Failed to verify 1 contract(s): TestContract
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Cannot read property 'absolutePath' of null · Issue #559 - GitHub
I cannot read any API spec using version 1.1.9 or 1.1.8. The code I'm using is: var raml= require('raml-js-parser'); var api = raml....
Read more >RAML Osprey-Mock-Service TypeError: Cannot read property ...
I seem to be having an issue using the osprey-mock-service for RAML 1.0 when I try to us the "uses" within a DataType....
Read more >RAML Schema reference - MuleSoft Help Center
My schema is valid (validated using external editor). capture.png. Below is the error i get. "Cannot read property 'absolutePath' of null".
Read more >Cannot read property 'docViewer' of undefined - GleamTech
There was a URLRewrite rule in the project, but the same error is thrown even after removing it. Nor are there any Handlers...
Read more >Cannot read property 'getPath' of undefined
Component list is not appearing on page. ... I have added these components in design mode. still it's not working. below is the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The reason the current library linking code looks like this (looking at
ast.absolutePath) is because the “simpler” initial version stopped working with Solidity >=0.7.5 (see the second half of the thread in #49). Perhaps you could try installingtruffle-plugin-verify@0.5.3, which is before I made this change.If that doesn’t work I think it might be possible to update the library so that it supports both cases, but I think that could be quite a bit of work, so I can’t really say when I’ll be able to make that work.
Happy that worked. I’ll try to publish a new version that works for both cases some time in the future, so I’ll leave this issue open for now. But like I said, it will probably take a while.