Skip to content

Commit

Permalink
Update for steem engine tokens to use string instead of float values
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyIce committed Mar 5, 2019
1 parent 333e2b6 commit e19dc66
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/popup/tokens.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
let tokens = [];
let accountTokenBalances = [];
const urlSSC = [
"https://api.steem-engine.com/rpc"
];
const urlSSC = [ "https://api.steem-engine.com/rpc" ];
const ssc = new SSC(urlSSC[0]);
let hidden_tokens = [];
const steemEngine="https://api.steem-engine.com/accounts";
const steemEngine = "https://api.steem-engine.com/accounts";
const CHAIN_ID = "ssc-mainnet1"

chrome.storage.local.get(['hidden_tokens'], function(items) {
if (items.hidden_tokens)
Expand Down Expand Up @@ -151,14 +150,14 @@ function getAccountBalances(account) {
}

async function sendToken(account_to, token, amount,memo) {
const id = "ssc-mainnet1";
const id = CHAIN_ID;
const json = {
"contractName": "tokens",
"contractAction": "transfer",
"contractPayload": {
"symbol": token,
"to": account_to,
"quantity": parseFloat(amount),
"quantity": amount,
"memo":memo
}
};
Expand Down

0 comments on commit e19dc66

Please sign in to comment.