Skip to content

Commit

Permalink
Default to eosio.token contract
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Oct 19, 2020
1 parent 09987e2 commit e82ef6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/shared/actions/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export function transfer(from, to, quantity, memo, symbol) {
});
try {
const contracts = balances.__contracts;
const contractAccount = contracts[currentSymbol].contract;
const contractAccount = contracts[currentSymbol].contract || 'eosio.token';
const actions = [await getAction(contractAccount, account, authorization, from, to, quantity, memo, connection.keyPrefix, connection, wallet)];
const signer = eos(connection, true, true)
const signer = eos(connection, true, true);
return signer.transact({ actions }, {
broadcast: connection.broadcast,
expireSeconds: connection.expireSeconds,
Expand Down

0 comments on commit e82ef6b

Please sign in to comment.