question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed to find contract with name "undefined"

See original GitHub issue

On both Linux (ubuntu 20.04.4 wsl on windows) and Windows 11, I still get this error message with version 2.1.7 of sol2uml:

> npm ls | grep sol2uml
├── sol2uml@2.1.7 extraneous -> ./.nvm/versions/node/v16.15.1/lib/node_modules/sol2uml

> sol2uml flatten 0x2762e676a9f17c7de34fe4b124424837c7e18e1c
Solidity written to KoiosECDSA.sol

> sol2uml storage KoiosECDSA.sol -v
  sol2uml verbose on +0ms
  sol2uml About to get Solidity files under KoiosECDSA.sol +0ms
  sol2uml Got Solidity file to be parsed: KoiosECDSA.sol +1ms
  sol2uml Added contract Context +0ms
  sol2uml Added contract IERC165 +0ms
  sol2uml Added contract ERC165 +0ms
  sol2uml Added contract IERC721 +1ms
  sol2uml Added contract IERC721Metadata +0ms
  sol2uml Added contract Address +0ms
  sol2uml Added contract Strings +0ms
  sol2uml Added contract ERC721 +1ms
  sol2uml Added contract IERC721Enumerable +0ms
  sol2uml Added contract ERC721Enumerable +0ms
  sol2uml Added contract Ownable +0ms
  sol2uml Added contract ECDSA +0ms
  sol2uml Added contract SignedTokenVerifier +1ms
  sol2uml Added contract KoiosECDSA +0ms
  sol2uml Added contract IERC721Receiver +0ms
Error: Failed to find contract with name "undefined"
    at convertClasses2Storages (/home/gerard/.nvm/versions/node/v16.15.1/lib/node_modules/sol2uml/lib/converterClasses2Storage.js:52:15)
    at Command.<anonymous> (/home/gerard/.nvm/versions/node/v16.15.1/lib/node_modules/sol2uml/lib/sol2uml.js:115:81)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Command.parseAsync (/home/gerard/.nvm/versions/node/v16.15.1/lib/node_modules/sol2uml/node_modules/commander/lib/command.js:917:5)
    at async main (/home/gerard/.nvm/versions/node/v16.15.1/lib/node_modules/sol2uml/lib/sol2uml.js:180:5)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gpersooncommented, Aug 15, 2022

Thanks, works nicely now!

0reactions
naddison36commented, Aug 15, 2022

I’ve published v2.1.8 with better handling of the storage diagram’s -c option

Read more comments on GitHub >

github_iconTop Results From Across the Web

resolver or addr is not configured for ENS name (argument ...
I get. Error: invalid address or ENS name (argument="name", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.6.2). But when I do. await contract.
Read more >
Instantiate test contract fails with Contract name is not known
I am trying to adapt the commercial paper tutorial to a custom contract. As soon as I change the contract name, I cannot...
Read more >
Instantiate test contract fails with Contract name is not known
Tried changing the contract name in the class back to the original `org.papernet.commercialpaper` and instantiating with this name instead - ...
Read more >
I get error saying "invalid contract address or ENS name ...
It seems CONTRACT_ADDRESS is not set correctly, can you log this out in your script, to check that it is correct. – Richard....
Read more >
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found