EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.28k stars 3.6k forks source link

FC Exception encountered while processing chain.push_transaction: #3647

Closed lingyiliu016 closed 6 years ago

lingyiliu016 commented 6 years ago

here is my smart contract file: ping.cpp

wx20180531-141958 2x

here is my eosjs script pingpong.js

wx20180531-142247 2x

when I run commend node pingpong.js here is the process nodeos show information:

wx20180531-142504 2x

here is the error

wx20180531-142630 2x

how should I do?

FortisFortuna commented 6 years ago

I get this error as well

moskvanaft commented 6 years ago

@lingyiliu016 , it seems like your JS code declares authorization of user 'child.acnt' but doesn't sign the transaction with the users' private key. Since your contract doesn't require authorization (eosiolib function require_auth) you don't need to provide authorization.

jcalfee commented 6 years ago

This can happen if the chainId does not match. There is a warning in the next eosjs release. Provide the cleos get info chain_id here Eos.Localhost({chainId: 'hex'}) ..