[EOSIO/eos] FC Exception encountered while processing chain.push_transaction: (#3647)

Here is my smart contract file pingPong.cpp.
`#include
#include

class ping_contract : public eosio::contract {
public:
using eosio::contract::contract;
void ping(account_name receiver) {
eosio::print(eosio::name{receiver},» Pong»);
}
};

EOSIO_ABI(ping_contract, (ping))`
Here is my eosjs file pingpong.js.
`let EOS = require(‘eosjs’)

eos = EOS.Localnet({
keyProvider:[‘5KcHE3HF4zAecKWFxBiizG3KBPpkBxbbMDAn1HPeHQZecy69bZy’,’5KQVzEFg4PbDNtCbdhbfgwfaqQYPNzhjna3ZCm5AzrFZCpeoccg’],
httpEndpoint:’http://127.0.0.1:8888′
})

eos.contract(‘child.acnt’).then((contract) => {
contract.ping(«child.acnt»,{authorization:[‘child.acnt’]}).then((res) => {
console.log(res)
})
})`
when I run `node pingpong.js`,the nodeos process show information:
3431433ms thread-0 http_plugin.cpp:369 handle_exception ] FC Exception encountered while processing chain.push_transaction: 3090003 unsatisfied_authorization: provided keys, permissions, and delays do not satisfy declared authorizations
transaction declares authority ‘{«actor»:»child.acnt»,»permission»:»active»}’, but does not have signatures for it under a provided delay of 0 ms
{«auth»:{«actor»:»child.acnt»,»permission»:»active»},»provided_delay»:0,»delay_max_limit_ms»:3888000000}
thread-0 authorization_manager.cpp:405 check_authorization

Добавить комментарий