Closed ghost closed 5 years ago
Ok I think I figure out why.
Contract method need await
keyword as well as authorisation details from account object , also add async
to getIdentify callback, or I will get "await is reserved keyword" when calling contract method.
await scatter.getIdentity(requiredFields).then(async (identity) => {
....
});
await contract.update('anorak',9,10,50,{ authorization: `${account.name}@${account.authority}`}).then(trx => {
console.log(trx)
}).catch(e => {
console.log(e);
})
});
so after this fix, I am able to see tx confirmation screen with all the payload data.
Closing this issue now
hi,
I have a local eos node running on http://127.0.0.1:8888/, I have created local account "anorak" and Active and OwnerKey, also created a contract "anorak", was able to interact with the contract with
cleos
in terminal. I have configured Network, Keys, and Identities in Scatter, for Account I select the localnetwork 127.0.0.1 and select anorak@active.However when I use Scatter, I have two issues below
anorak@active
account, but the public key in callback result is not my activekey or ownerkey. It is a new key I've never seen before (see comments in code). And I notice if I remove chainId from the code, the pop up page will not able to find the account.getplayer
does not output anything inthen
orcatch
.Does anyone know if this is an issue with Scatter?