Skip to content

CLI or web. #21

Description

@staminna

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions