abi2solidity icon indicating copy to clipboard operation
abi2solidity copied to clipboard

CLI or web.

Open staminna opened this issue 1 year ago • 0 comments

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.

staminna avatar Jul 27 '22 13:07 staminna