mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
Steemconnect esteem token transfer feature added
This commit is contained in:
parent
62361f6451
commit
9b7d16e0ae
@ -142,12 +142,27 @@ class TransferView extends Component {
|
||||
isTransfering,
|
||||
from,
|
||||
} = this.state;
|
||||
let path;
|
||||
|
||||
const path = `sign/transfer?from=${
|
||||
accounts[0].username
|
||||
}&to=${destination}&amount=${encodeURIComponent(`${amount} STEEM`)}&memo=${encodeURIComponent(
|
||||
memo,
|
||||
)}`;
|
||||
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
|
||||
}&to=${destination}&amount=${encodeURIComponent(`${amount} STEEM`)}&memo=${encodeURIComponent(
|
||||
memo,
|
||||
)}`;
|
||||
}
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
|
Loading…
Reference in New Issue
Block a user