Code Monkey home page Code Monkey logo

js4eos's People

Contributors

itleaks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js4eos's Issues

Compile-time network error, but my network is normal, please point out, thank you.

js4eos compile2 -o ./contracts/test/test.wasm ./contracts/test/src/test.cpp
fail due to network or error, please check network and try again
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Request._callback (C:\Users\eos\AppData\Roaming\npm\node_modules\js4eos\lib\compile.js:28:21)
at Request.self.callback (C:\Users\eos\AppData\Roaming\npm\node_modules\js4eos\node_modules\request\request.js:185:22)
at Request.emit (events.js:182:13)
at Request. (C:\Users\eos\AppData\Roaming\npm\node_modules\js4eos\node_modules\request\request.js:1161:10)
at Request.emit (events.js:182:13)
at IncomingMessage. (C:\Users\eos\AppData\Roaming\npm\node_modules\js4eos\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:273:13)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)

编译合约报错

编译合约报错,但是编译hello合约又可以。

anonymous$ js4eos dapp compile eosio.token
TypeError: Cannot read property 'kylin' of undefined
    at compile (/usr/local/lib/node_modules/js4eos/cmds/dapp_cmds/compile.js:35:59)
    at Object.exports.handler (/usr/local/lib/node_modules/js4eos/cmds/dapp_cmds/compile.js:76:5)
    at Object.self.runCommand (/usr/local/lib/node_modules/js4eos/node_modules/yargs/lib/command.js:231:22)
    at Object.Yargs.self._parseArgs (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:990:30)
    at Object.self.runCommand (/usr/local/lib/node_modules/js4eos/node_modules/yargs/lib/command.js:202:45)
    at Object.Yargs.self._parseArgs (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:990:30)
    at Object.get [as argv] (/usr/local/lib/node_modules/js4eos/node_modules/yargs/yargs.js:930:19)
    at startCmd (/usr/local/lib/node_modules/js4eos/js4eos:8:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/js4eos/js4eos:28:5)
    at Module._compile (internal/modules/cjs/loader.js:722:30)

set account permission 报 json 语法错误

js4eos set account permission qyvlikeosdev active EOS4xWTNK4ySE57Am86fH5pbFhyDhTGkrHDiWgNoNnYTabCqBkhky owner -p qyvlikeosdev
qyvlikeosdev
active
(node:63321) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token E in JSON at position 0
    at JSON.parse (<anonymous>)
    at EosHelper.EOS.transaction.tr (/usr/local/lib/node_modules/js4eos/lib/api.js:161:24)
    at trMessageCollector (/usr/local/lib/node_modules/js4eos/node_modules/eosjs/lib/write-api.js:560:26)
    at Object._callee$ (/usr/local/lib/node_modules/js4eos/node_modules/eosjs/lib/write-api.js:327:48)
    at tryCatch (/usr/local/lib/node_modules/js4eos/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/js4eos/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/js4eos/node_modules/regenerator-runtime/runtime.js:114:21)
    at tryCatch (/usr/local/lib/node_modules/js4eos/node_modules/regenerator-runtime/runtime.js:62:40)
    at invoke (/usr/local/lib/node_modules/js4eos/node_modules/regenerator-runtime/runtime.js:152:20)
    at /usr/local/lib/node_modules/js4eos/node_modules/regenerator-runtime/runtime.js:195:11
(node:63321) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:63321) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

about "only support update active permission" problem??

本想要通过 set account permission 设置自定义权限时,出现了"only support update active permission"的中断??

When I want to set a custom permission with set account permission, I get an interrupt for "only support update active permission"??

编译报错,网络错误

用这种方式编译:js4eos compile2 -g xxx.abi xxx.cpp --contract contractclass

报下面的错:
fail due to network or error, please check network and try again
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (/usr/local/lib/node_modules/js4eos/lib/compile.js:28:21)
at self.callback (/usr/local/lib/node_modules/js4eos/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request.onRequestError (/usr/local/lib/node_modules/js4eos/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:200:13)
at Socket.socketErrorListener (_http_client.js:402:9)
at Socket.emit (events.js:200:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)

编译报错

由于没有修改eosio.token.cpp源文件,所以编译报错

eosio.token.cpp:6:10: fatal error: 'eosio.token/eosio.token.hpp' file not found
#include <eosio.token/eosio.token.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

但是修改源文件后,不检查新修改的代码,依然报之前的错误。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.