GetScatter / ScatterDesktop

Connect to applications on EOS, Ethereum, and Tron. Exchange tokens with ease. Manage your assets safely. All in a simple to use interface.
https://get-scatter.com/
GNU General Public License v3.0
501 stars 197 forks source link

scatter.requestTransfer not sending custom tokens #234

Open BenHigh5 opened 5 years ago

BenHigh5 commented 5 years ago

When sending an alternative token besides EOS that is EOS based, the token still defaults to EOS. Unsure if this is supported or if bug.

tokenAmount = "1";
const tokenDetails = {contract: "publytoken11", symbol:"PUB", memo:"whatever", decimals:4};
console.log(tokenDetails);
scatter.requestTransfer(network, 'tipitaccount', tokenAmount, tokenDetails).then(result => {
    console.log('result', result);
})
BenHigh5 commented 5 years ago

I was able to use eosjs w/ scatter to get the tokens to transfer, so my end of it's good to go, but I was curious if there were plans to support this in the future as it would be much simpler.

cptn-solo commented 5 years ago

Agree with @BenAlthauser , UI for requestTransfer is much simpler than transaction confirmation which we use to make transfers between accounts of our sidechain. But for now I get "symbol precision mismatch" error when trying to request transfer.

itchii-06 commented 4 years ago

I have the same issue. So, I use eos.js. It's working.

eos
.transaction({
  actions: [
    {
      account: 'account_name',
      name: 'transfer',
      authorization: [
        {
          actor: account.name,
          permission: account.authority
        }
      ],
      data: {
        from: from,
        to: to',
        quantity: '0.0001 SYS',
        memo: ''
      }
    }
  ]
})