Comments (4)
I changed the code slightly to include the chainId as per the discussion of this similar issue EOSIO/eosjs#131 and a suggestion from the scatter telegram channel.
However I still get the same error. Code below
function vote_now(e) {
const network = {
blockchain:'eos',
host: chain_addr,
port: chain_port,
chainId: 'a628a5a6123d6ed60242560f23354c557f4a02826e223bb38aad79ddeb9afbca',
}
const requiredFields = {
accounts:[ network ],
};
scatter.suggestNetwork(network).then((result) => {
scatter.getIdentity(requiredFields).then(identity => {
const eosOptions = {};
eos = scatter.eos( network, Eos.Localnet, eosOptions );
eos.contract('eosio', requiredFields).then(c => {
c.voteproducer({'voter': identity.accounts[0].name, 'proxy': proxy_name, 'producers': proxy_name != '' ? [] : votes},
{ authorization: [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);
})
.........
from scatterwebextension.
Put the chain id into the eosOptions, not the network.
from scatterwebextension.
error {"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":"havefun","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"}]}}
I got the error too.
from scatterwebextension.
The chainId value must be the same value as the nodeos you are trying to connect to.
The chainId value changes according to the genesis value of the chain.
http://domain/v1/chain/get_info or cleos get info
from scatterwebextension.
Related Issues (20)
- identity filtering : owner or active
- 0x from ETH Private key - Good to remove
- Any plans to work for MEW / MyCrypto implementation? HOT 1
- Scatter not loading from backup HOT 2
- How can I get specified account balance? HOT 1
- not found "eosjs" file
- scatter not found on window HOT 1
- Missing unlock button
- Abi wasn't successfuly extracted
- add decrypt function HOT 1
- Some actions are working with key, but doesn't working with Scatter HOT 1
- Prompt users to install Scatter Desktop HOT 1
- Error calling getArbitrarySignature (TypeError: t(...)[u] is not a function) HOT 6
- Scatter is not injected to iframe HOT 1
- when the password length is 12, why is the mnemonic eaqual to the password? HOT 1
- How to call contract push action? HOT 1
- my account can't play games on scatter HOT 1
- "There is no identity with an account set on your Scatter instance.", Error with scatter-js HOT 2
- How to deal with forget password and phrase? HOT 2
- 3090003, unsatisfied_authorization HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scatterwebextension.