ScatterDesktop icon indicating copy to clipboard operation
ScatterDesktop copied to clipboard

scatter.requestTransfer not sending custom tokens

Open BenHigh5 opened this issue 6 years ago • 3 comments

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 avatar Dec 20 '18 22:12 BenHigh5

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.

BenHigh5 avatar Dec 25 '18 01:12 BenHigh5

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.

cptn-solo avatar Feb 10 '19 17:02 cptn-solo

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: ''
      }
    }
  ]
})

itchii-06 avatar Apr 06 '20 06:04 itchii-06