GetScatter / ScatterWebExtension

Extension that allows you to sign transactions with your private keys securely from within the browser without ever exposing them.
MIT License
366 stars 127 forks source link

Why I can't get the eos account name from the identity? #67

Closed iFrankWu closed 6 years ago

iFrankWu commented 6 years ago

My Env: Scatter 4.0.3 Dawn 4.2

Here is there trace log of print the identy. Get the identity:{"hash":"3a79e2913e3e456ea0d6d1e33d444048b6f3e32058f24f6e8f7e58138fc2f301","publicKey":"EOS53orukiWJhuu8jN6pkpvKUw6sQRPB7AjjAXWQAsFPHRsdfCpCV","name":"RandomRabbit5986286","kyc":false,"personal":{"email":"have@fun.com"}}

Why the name is "RandomRabbit5986286", but the the eos account name i create in EOS wallet.

iFrankWu commented 6 years ago

const network = { blockchain: 'eos', host: '192.168.1.103',//'127.0.0.1', // ( or null if endorsed chainId ) port: 8888, // ( or null if defaulting to 80 ) chainId:"706a7ddd808de9fc2b8879904f3b392256c83104c1d544b38302cc07d9fca477" }

// scatter.suggestNetwork(network);

scatter.getIdentity({ accounts:[network] }).then(
    identity => {});

Need to pass the accounts:[network] object to getIdenetity