Skip to content

Commit

Permalink
Fixed minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Nov 10, 2018
1 parent dd375dc commit 5d1a450
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class App extends React.Component {
global.port = 7403;
global.ip = "13.57.248.201";
global.ecl = new ElectrumCli(global.port, global.ip, 'tcp');
global.version = "1.0.1";
global.version = "1.0.2";

global.ecl.connect().then(() => this.ping)
}
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ android {
applicationId "com.microbitcoin"
minSdkVersion 16
targetSdkVersion 27
versionCode 7
versionName "1.0.1"
versionCode 8
versionName "1.0.2"
ndk {
abiFilters "armeabi-v7a", "x86"
}
Expand Down
1 change: 1 addition & 0 deletions src/components/ImportKeyScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class openPasswordWalletScreen extends React.Component {
this.state.walletUtils.updateBalance();
this.state.walletUtils.subscribeToAddresses();
saveWallet(this.state.walletUtils.wallet);
this.setState({walletUtils: this.state.walletUtils});
this.props.navigation.goBack();
}},
],
Expand Down
1 change: 1 addition & 0 deletions src/components/WalletReceiveScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default class ReceiveScreen extends React.Component {
}
}

this.setState({walletUtils: this.state.walletUtils});
store.save('wallets', res);
this.setState({loading: false});
})
Expand Down
4 changes: 3 additions & 1 deletion src/components/WalletSettingsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class WalletSettingsScreen extends React.Component {
}

copyMnemonic = () => {
Clipboard.setString(decryptData(this.state.walletUtils.wallet.mnemonicPhrase, this.state.password))
Clipboard.setString(decryptData(this.state.walletUtils.wallet.mnemonicPhrase, this.state.walletUtils.password))
Alert.alert('Copy recovery phrase', 'The recovery phrase has been successfully copied!')
}

Expand All @@ -55,6 +55,8 @@ export default class WalletSettingsScreen extends React.Component {
break
}
}

this.setState({walletUtils: this.state.walletUtils});
store.save('wallets', res)
this.props.navigation.push("MyWallets")
})
Expand Down

0 comments on commit 5d1a450

Please sign in to comment.