Skip to content

Commit

Permalink
Merge pull request #2106 from bithyve/dev
Browse files Browse the repository at this point in the history
Build 132 Live
  • Loading branch information
PraneethGunas authored Feb 16, 2023
2 parents e37f468 + 8f2687e commit 9c63a5d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ android {
applicationId "io.hexawallet.keeper"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 131
versionCode 132
versionName "1.0.1"
missingDimensionStrategy 'react-native-camera', 'general'
missingDimensionStrategy 'store', 'play'
Expand Down
8 changes: 4 additions & 4 deletions ios/hexa_keeper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper/hexa_keeper.entitlements;
CURRENT_PROJECT_VERSION = 131;
CURRENT_PROJECT_VERSION = 132;
DEVELOPMENT_TEAM = Y5TCB759QL;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = hexa_keeper/Info.plist;
Expand Down Expand Up @@ -740,7 +740,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper/hexa_keeper.entitlements;
CURRENT_PROJECT_VERSION = 131;
CURRENT_PROJECT_VERSION = 132;
DEVELOPMENT_TEAM = Y5TCB759QL;
INFOPLIST_FILE = hexa_keeper/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.finance";
Expand Down Expand Up @@ -892,7 +892,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = "dev-AppIcon";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper_dev.entitlements;
CURRENT_PROJECT_VERSION = 131;
CURRENT_PROJECT_VERSION = 132;
DEVELOPMENT_TEAM = Y5TCB759QL;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "hexa_keeper_dev-Info.plist";
Expand Down Expand Up @@ -923,7 +923,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = "dev-AppIcon";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper_dev.entitlements;
CURRENT_PROJECT_VERSION = 131;
CURRENT_PROJECT_VERSION = 132;
DEVELOPMENT_TEAM = Y5TCB759QL;
INFOPLIST_FILE = "hexa_keeper_dev-Info.plist";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.finance";
Expand Down
17 changes: 8 additions & 9 deletions src/core/wallets/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ export default class WalletOperations {
false
).address;
} else {
let xpub = null;
let purpose = null;
if (wallet.entityKind === EntityKind.VAULT) {
xpub = (wallet as Vault).specs.xpubs[0];
purpose = WalletUtilities.getPurpose((wallet as Vault).signers[0].derivationPath);
} else {
xpub = (wallet as Wallet).specs.xpub;
purpose = WalletUtilities.getPurpose((wallet as Wallet).derivationDetails.xDerivationPath);
}
const xpub =
wallet.entityKind === EntityKind.VAULT
? (wallet as Vault).specs.xpubs[0]
: (wallet as Wallet).specs.xpub;
const purpose = EntityKind.VAULT
? undefined
: WalletUtilities.getPurpose((wallet as Wallet).derivationDetails.xDerivationPath);

receivingAddress = WalletUtilities.getAddressByIndex(
xpub,
false,
Expand Down
11 changes: 8 additions & 3 deletions src/screens/Send/AddSendAmount.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Text from 'src/components/KeeperText';
import { Box, Input, Pressable } from 'native-base';
import { TextInput } from 'react-native';
import { Alert, TextInput } from 'react-native';
import React, { useEffect, useState } from 'react';
import { calculateSendMaxFee, sendPhaseOne } from 'src/store/sagaActions/send_and_receive';
import { hp, windowWidth, wp } from 'src/common/data/responsiveness/responsive';
Expand Down Expand Up @@ -108,17 +108,22 @@ function AddSendAmount({ route }) {
sender,
recipient,
address,
amount: parseInt(amountToSend),
amount: parseInt(amountToSend, 10),
transferType,
});
};
const { showToast } = useToastMessage();

const executeSendPhaseOne = () => {
const recipients = [];
if (!amountToSend) {
showToast('Please enter a valid amount');
return;
}

recipients.push({
address,
amount: amount ? parseInt(amount) : 0,
amount: amountToSend, // should be denominated in sats
});
dispatch(
sendPhaseOne({
Expand Down

0 comments on commit 9c63a5d

Please sign in to comment.