cubist-labs / cubist

Cubist multichain SDK and CLI
https://docs.cubist.dev
Apache License 2.0
18 stars 2 forks source link

`cubist build` can't find solc #125

Open tomerweller opened 1 year ago

tomerweller commented 1 year ago

Following the quick start tutorial.

The cubist build step fails. Looks like it can't find solc even though that's available (installed via homebrew)

➜  JavaScript git:(main) ✗ cubist build         
Pre-compiling project
Validating 1 file(s) for target polygon
Error: 
   0: Failed to validate <redacted>/cubist-sdk-templates/Storage/JavaScript/contracts/StorageSender.sol
   1: Error compiling `<redacted>/cubist-sdk-templates/Storage/JavaScript/contracts/StorageSender.sol: 'solc' invocation failed
   2: Unknown version provided

Location:
   cubist-cli/src/commands/pre_compile.rs:173
4tXJ7f commented 1 year ago

Thank you for the report @tomerweller and sorry for the late reply. Which version of solc are you using? Did you install it using solidity or solc-select? I have not been able to reproduce it on my machine (I have installed solc using solc-select and tried different versions).