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

CLI or web. #21

Open
staminna opened this issue Jul 27, 2022 · 0 comments
Open

CLI or web. #21

staminna opened this issue Jul 27, 2022 · 0 comments

Comments

@staminna
Copy link

staminna commented Jul 27, 2022

jorge@MacBook-Pro % cat example.json

[
  {
    "constant": false,
    "inputs": [],
    "name": "f",
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable",
    "type": "function"
  }
]

%jorge@MacBook-Pro backendfs % abi2solidity -i example.json -o test.sol
/Users/jorge/.yarn/bin/abi2solidity: line 1: use strict: command not found
/Users/jorge/.yarn/bin/abi2solidity: line 3: syntax error near unexpected token (' /Users/jorge/.yarn/bin/abi2solidity: line 3: var _commander = require('commander');'

Tested with:

jorge@MacBook-Pro backends % node -v
v16.16.0
v14.20.0
and also 18. x (latest)
Monterey 12.4
bash and zsh.

Is this a Typescript, Javascript, or Node.js Package? I Couldn't use it programmatically either and report after I can actually use it on the command line.

EDIT: actually installation is broken, at least global.
We need better documentation. I will contribute whatever I can.

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