Skip to content

Commit

Permalink
Merge pull request #199 from VerusCoin/dev
Browse files Browse the repository at this point in the history
v1.0.24
  • Loading branch information
Asherda authored Dec 17, 2024
2 parents 2b330ea + 90d217d commit c366d3b
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 41 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.android.build.OutputFile

def versionMajor = 1
def versionMinor = 0
def versionRevision = 23
def versionRevision = 24
def versionBuild = 0

def keystorePropertiesFile = rootProject.file("keystore.properties");
Expand Down
2 changes: 1 addition & 1 deletion env/main.android.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "1.0.23",
"APP_VERSION": "1.0.24",
"ELECTRUM_PROTOCOL_CHANGE": 1.4,

"KEY_DERIVATION_VERSION": 1,
Expand Down
2 changes: 1 addition & 1 deletion env/main.ios.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "1.0.23",
"APP_VERSION": "1.0.24",
"ELECTRUM_PROTOCOL_CHANGE": 1.4,

"KEY_DERIVATION_VERSION": 1,
Expand Down
2 changes: 1 addition & 1 deletion ios/assets/env/main.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "1.0.23",
"APP_VERSION": "1.0.24",
"ELECTRUM_PROTOCOL_CHANGE": 1.4,

"KEY_DERIVATION_VERSION": 1,
Expand Down
4 changes: 2 additions & 2 deletions ios/verusMobile.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@
"\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-webview\"",
"\"${PODS_CONFIGURATION_BUILD_DIR}/rn-fetch-blob\"",
);
MARKETING_VERSION = 1.0.23;
MARKETING_VERSION = 1.0.24;
PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.verusmobile;
PRODUCT_NAME = verusmobile;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -817,7 +817,7 @@
"\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-webview\"",
"\"${PODS_CONFIGURATION_BUILD_DIR}/rn-fetch-blob\"",
);
MARKETING_VERSION = 1.0.23;
MARKETING_VERSION = 1.0.24;
PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.verusmobile;
PRODUCT_NAME = verusmobile;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "verusmobile",
"version": "1.0.23",
"version": "1.0.24",
"private": true,
"scripts": {
"postinstall": "./node_modules/.bin/rn-nodeify --hack --install --yarn && npx jetify",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,33 +577,35 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
}
}

for (const coinId in activeAccount.keys) {
if (activeAccount.keys[coinId] && (activeAccount.keys[coinId][ETH] || activeAccount.keys[coinId][ERC20])) {
const ethAddresses = activeAccount.keys[coinId][ETH] ?
activeAccount.keys[coinId][ETH].addresses : activeAccount.keys[coinId][ERC20].addresses;

if (ethAddresses && ethAddresses.length > 0) {
const addr = ethAddresses[0];
const addrTitle = addr.substring(0, 8) + '...' + addr.substring(addr.length - 8);

if (!seen.has(addr)) {
seen.add(addr);
addresses.push({
title: addrTitle,
logoid: coinsList.ETH.id,
key: addr,
description: addr,
values: {
[SEND_MODAL_TO_ADDRESS_FIELD]: addr
},
right: "",
keywords: [
addr
]
})
if (!sendModal.data[SEND_MODAL_IS_PRECONVERT]) {
for (const coinId in activeAccount.keys) {
if (activeAccount.keys[coinId] && (activeAccount.keys[coinId][ETH] || activeAccount.keys[coinId][ERC20])) {
const ethAddresses = activeAccount.keys[coinId][ETH] ?
activeAccount.keys[coinId][ETH].addresses : activeAccount.keys[coinId][ERC20].addresses;

if (ethAddresses && ethAddresses.length > 0) {
const addr = ethAddresses[0];
const addrTitle = addr.substring(0, 8) + '...' + addr.substring(addr.length - 8);

if (!seen.has(addr)) {
seen.add(addr);
addresses.push({
title: addrTitle,
logoid: coinsList.ETH.id,
key: addr,
description: addr,
values: {
[SEND_MODAL_TO_ADDRESS_FIELD]: addr
},
right: "",
keywords: [
addr
]
})
}

break;
}

break;
}
}
}
Expand Down Expand Up @@ -667,9 +669,11 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
case SEND_MODAL_MAPPING_FIELD:
newSuggestionsBase = await processMappingSuggestionPaths(flatPaths, sendModal.coinObj);
setSuggestionBase(newSuggestionsBase);
break;
case SEND_MODAL_TO_ADDRESS_FIELD:
newSuggestionsBase = processSelfSuggestionPaths();
setSuggestionBase(newSuggestionsBase);
break;
default:
setSuggestionBase(newSuggestionsBase);
break;
Expand Down Expand Up @@ -1037,13 +1041,17 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
fillAmount(BigNumber(spendableBalance));
};

const setAddressSelf = () => {
const addr = addresses.results[0]

updateSendFormData(
SEND_MODAL_TO_ADDRESS_FIELD,
addr
);
const handleSelfPressed = () => {
if (allSubWallets[coinsList.VRSC.id]) {
handleFieldFocus(SEND_MODAL_TO_ADDRESS_FIELD);
} else {
const addr = addresses.results[0]

updateSendFormData(
SEND_MODAL_TO_ADDRESS_FIELD,
addr
);
}
};

return localBalances == null ? (<AnimatedActivityIndicatorBox />) : (
Expand Down Expand Up @@ -1190,7 +1198,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
onRecipientAddressChange={text =>
updateSendFormData(SEND_MODAL_TO_ADDRESS_FIELD, text)
}
onSelfPress={() => handleFieldFocus(SEND_MODAL_TO_ADDRESS_FIELD)}
onSelfPress={() => handleSelfPressed()}
amountValue={sendModal.data[SEND_MODAL_AMOUNT_FIELD]}
onAmountChange={text =>
updateSendFormData(SEND_MODAL_AMOUNT_FIELD, text)
Expand All @@ -1200,6 +1208,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
networkName={networkName}
estimatedResultSubtitle={
isConversion &&
!isExport &&
sendModal.data[SEND_MODAL_PRICE_ESTIMATE] != null &&
processedAmount != null
? `≈ ${Number(
Expand Down

0 comments on commit c366d3b

Please sign in to comment.