I am trying to write a voting application. Since Monday this has been failing with the above error message. I suspect this is related to the change to Dawn 4.2. I am connected the Jungle Testnet and am using scatter from the Google Chrome store. This reports itself as version 4.0.3.
function vote_now(e) {
const network = {
blockchain:'eos',
host: chain_addr,
port: chain_port,
}
const requiredFields = {
accounts:[ network ],
};
scatter.suggestNetwork(network).then((result) => {
scatter.getIdentity(requiredFields).then(identity => {
const eosOptions = {};
eos = scatter.eos( network, eosjs.Localnet, eosOptions );
eos.contract('eosio', {accounts:[{blockchain:'eos', host:chain_addr, port:chain_port}, ]
}).then(c => {
c.voteproducer({'voter': scatter.identity.accounts[0].name, 'proxy': proxy_name, 'producers': proxy_name != '' ? [] : votes},
{ authorization: [scatter.identity.accounts[0].name]} )
.then((result) => {
alert('Your vote was cast successfully');
confirming_vote = false;
redrawAll();
})
.catch((error) => {
console.error('voteproducer error=', error);
alert('eosio.voteproducer returned an error\nmessage:' + error.message);
})
.....
{
"code":500,"message":"Internal Service Error",
"error":{"code":3090003,
"name":"unsatisfied_authorization",
"what":"provided keys, permissions, and delays do not satisfy declared authorizations",
"details":[
{"message":"transaction declares authority '{\"actor\":\"alloalloallo\",\"permission\":\"active\"}', but does not have signatures for it under a provided delay of 0 ms",
"file":"authorization_manager.cpp","line_number":405,"method":"check_authorization"}
]
}
}