diff --git a/.env b/.env index 9c78cc69b..fa04b962d 100644 --- a/.env +++ b/.env @@ -5,10 +5,10 @@ # import { API_URL } from 'react-native-dotenv' # Same as MARKETING_VERSION in iOS / version in Android -APP_MARKETING_VERSION=0.13.1 +APP_MARKETING_VERSION=0.13.2 # Same as CURRENT_PROJECT_VERSION in iOS / version code in Android -APP_VERSION=156 +APP_VERSION=157 # APP_VERSION must be greater or equal to the this value # without forcing user to update the app diff --git a/android/app/build.gradle b/android/app/build.gradle index a0d4a8036..5bc6092eb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -138,8 +138,8 @@ android { applicationId "com.oice" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 156 - versionName "0.13.1" + versionCode 157 + versionName "0.13.2" missingDimensionStrategy 'react-native-camera', 'general' } splits { diff --git a/app/screens/likerland-oauth-screen/likerland-oauth-screen.tsx b/app/screens/likerland-oauth-screen/likerland-oauth-screen.tsx index b97f5ea86..1b4c56f2a 100644 --- a/app/screens/likerland-oauth-screen/likerland-oauth-screen.tsx +++ b/app/screens/likerland-oauth-screen/likerland-oauth-screen.tsx @@ -65,7 +65,7 @@ export class LikerLandOAuthScreen extends React.Component { try { - const { address, availableBalance } = this.props.chain.wallet + const { address } = this.props.chain.wallet await this.props.txStore.createUnbondingDelegateTx(address) - const { totalAmount } = this.props.txStore - if (totalAmount.isGreaterThan(availableBalance)) { + const { target, totalAmount } = this.props.txStore + const delegatedAmount = this.props.chain.wallet.getDelegation(target).shares + if (totalAmount.isGreaterThan(delegatedAmount)) { throw new Error("UNSTAKE_NOT_ENOUGH_FEE") } return true diff --git a/ios/LikeCoinApp.xcodeproj/project.pbxproj b/ios/LikeCoinApp.xcodeproj/project.pbxproj index bd3cbf6f8..2c6bb1cca 100644 --- a/ios/LikeCoinApp.xcodeproj/project.pbxproj +++ b/ios/LikeCoinApp.xcodeproj/project.pbxproj @@ -703,12 +703,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = LikeCoinApp/LikeCoinApp.entitlements; - CURRENT_PROJECT_VERSION = 156; + CURRENT_PROJECT_VERSION = 157; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = 76UMR894HH; INFOPLIST_FILE = LikeCoinApp/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 0.13.1; + MARKETING_VERSION = 0.13.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -727,11 +727,11 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = LikeCoinApp/LikeCoinApp.entitlements; - CURRENT_PROJECT_VERSION = 156; + CURRENT_PROJECT_VERSION = 157; DEVELOPMENT_TEAM = 76UMR894HH; INFOPLIST_FILE = LikeCoinApp/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 0.13.1; + MARKETING_VERSION = 0.13.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", diff --git a/package.json b/package.json index 7e35f4065..a78423921 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "likecoin-app", - "version": "0.13.1", + "version": "0.13.2", "private": true, "scripts": { "start": "react-native start",