Skip to content

Commit fdbc878

Browse files
fix: removed validator bond
1 parent d51299c commit fdbc878

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/containers/Transactions/ModalTokenize/Amount.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ const Amount = () => {
6161
validatorDelegationAmount.value,
6262
stringToNumber(value)
6363
);
64-
const bondValidation = bondCheck(value);
65-
let validationCheck;
66-
if (bondValidation.message !== "") {
67-
validationCheck = bondValidation;
68-
} else {
69-
validationCheck = amountValidation;
70-
}
64+
// const bondValidation = bondCheck(value);
65+
// let validationCheck;
66+
// if (bondValidation.message !== "") {
67+
// validationCheck = bondValidation;
68+
// } else {
69+
// validationCheck = amountValidation;
70+
7171
dispatch(
7272
setTxTokenizeAmount({
7373
value: value,
74-
error: validationCheck
74+
error: amountValidation
7575
})
7676
);
7777
} else {

src/containers/Transactions/ModalTokenize/ButtonSubmit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import transactions from "../../../utils/transactions";
2828
import { fee } from "../../../utils/aminoMsgHelper";
2929
import { fetchApiData, pollAccountBalance } from "../../../utils/queries";
3030
import { getTokenizedShares } from "../../../utils/actions";
31-
import { showFeeModal } from "../../../store/actions/transactions/fee";
3231

3332
const getLatestRecord = (newList, oldList) => {
3433
const result = newList.filter(
@@ -69,7 +68,8 @@ const ButtonSubmit = () => {
6968
const disable =
7069
amount.value === "" ||
7170
stringToNumber(amount.value) === 0 ||
72-
amount.error.message !== "" ||
71+
(amount.error.message !== undefined &&
72+
amount.error.message !== "") ||
7373
validatorAddress.value === "" ||
7474
validatorAddress.error.message !== "" ||
7575
memo.error.message !== "" ||

src/store/actions/transactions/keyStore.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const keyStoreTxn = async (loginAddress, msgs) => {
8585
);
8686
const bip39PassPhrase = store.getState().advanced.bip39PassPhrase.value;
8787

88-
const fee = store.getState().fee.fee.value.fee;
88+
const feeData = store.getState().fee.fee.value.fee;
8989
const gas = store.getState().gas.gas.value;
9090

9191
let mnemonic = "";
@@ -111,8 +111,8 @@ export const keyStoreTxn = async (loginAddress, msgs) => {
111111

112112
const result = await transactions.TransactionWithMnemonic(
113113
msgs,
114-
fee(Math.trunc(fee), gas),
115-
memo,
114+
fee(Math.trunc(feeData), gas),
115+
"",
116116
mnemonic,
117117
makeHdPath(accountNumber, accountIndex, loginCoinType),
118118
bip39PassPhrase,
@@ -164,7 +164,7 @@ export const keyStoreSubmit = (loginAddress) => {
164164
const formData = getState().common.txInfo.value.data;
165165
const txName = getState().common.txName.value.name;
166166

167-
const fee = getState().fee.fee.value.fee;
167+
const feeData = getState().fee.fee.value.fee;
168168
const gas = getState().gas.gas.value;
169169

170170
let mnemonic = "";
@@ -190,7 +190,7 @@ export const keyStoreSubmit = (loginAddress) => {
190190
let result = await transactions.getTransactionResponse(
191191
loginAddress,
192192
formData,
193-
fee,
193+
feeData,
194194
gas,
195195
mnemonic,
196196
txName,

0 commit comments

Comments
 (0)