Skip to content

Commit

Permalink
fix balance check with plate
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Nov 13, 2019
1 parent 6801a8a commit e67c9e8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/actions/ada/yoroi-transfer-actions.js
Expand Up @@ -13,7 +13,6 @@ export default class YoroiTranferActions {
paperPassword: string,
}> = new Action();
checkAddresses: Action<{|
publicDeriver: PublicDeriverWithCachedMeta,
|}> = new Action();
backToUninitialized: Action<void> = new Action();
transferFunds: Action<{
Expand Down
9 changes: 0 additions & 9 deletions app/containers/transfer/YoroiTransferPage.js
Expand Up @@ -51,7 +51,6 @@ export default class YoroiTransferPage extends Component<InjectedProps> {
setupTransferFundsWithMnemonic = (payload: {|
recoveryPhrase: string,
|}) => {
const walletsStore = this._getWalletsStore();
this._getYoroiTransferActions().setupTransferFundsWithMnemonic.trigger({
...payload,
});
Expand All @@ -61,21 +60,13 @@ export default class YoroiTransferPage extends Component<InjectedProps> {
recoveryPhrase: string,
paperPassword: string,
|}) => {
const walletsStore = this._getWalletsStore();
const publicDeriver = walletsStore.selected;
this._getYoroiTransferActions().setupTransferFundsWithPaperMnemonic.trigger({
...payload,
});
};

checkAddresses: void => void = () => {
const walletsStore = this._getWalletsStore();
const publicDeriver = walletsStore.selected;
if (publicDeriver == null) {
throw new Error('tranferFunds no wallet selected');
}
this._getYoroiTransferActions().checkAddresses.trigger({
publicDeriver,
});
};

Expand Down
1 change: 0 additions & 1 deletion app/stores/ada/YoroiTransferStore.js
Expand Up @@ -197,7 +197,6 @@ export default class YoroiTransferStore extends Store {
}

_checkAddresses = async (payload: {
publicDeriver: PublicDeriverWithCachedMeta,
}): Promise<void> => {
this._updateStatus(TransferStatus.CHECKING_ADDRESSES);
const transferTx = await this._generateTransferTxFromMnemonic(
Expand Down

0 comments on commit e67c9e8

Please sign in to comment.