Steemconnect esteem token transfer feature added

This commit is contained in:
Mustafa Buyukcelebi 2019-06-15 14:31:41 +03:00
parent 62361f6451
commit 9b7d16e0ae

View File

@ -142,12 +142,27 @@ class TransferView extends Component {
isTransfering, isTransfering,
from, from,
} = this.state; } = this.state;
let path;
const path = `sign/transfer?from=${ if (transferType === 'points') {
const json = JSON.stringify({
sender: accounts[0].username,
receiver: destination,
amount,
memo,
});
path = `sign/custom-json?required_auths=%5B%22${
accounts[0].username
}%22%5D&required_posting_auths=%5B%5D&id=esteem_point_transfer&json=${encodeURIComponent(
json,
)}`;
} else {
path = `sign/transfer?from=${
accounts[0].username accounts[0].username
}&to=${destination}&amount=${encodeURIComponent(`${amount} STEEM`)}&memo=${encodeURIComponent( }&to=${destination}&amount=${encodeURIComponent(`${amount} STEEM`)}&memo=${encodeURIComponent(
memo, memo,
)}`; )}`;
}
return ( return (
<Fragment> <Fragment>