amend a few warnings
This commit is contained in:
@@ -25,7 +25,7 @@ pub const REMOTE_SOURCE_OF_NYXD_URLS: &str =
|
||||
|
||||
const CURRENT_GLOBAL_CONFIG_VERSION: u32 = 1;
|
||||
const CURRENT_NETWORK_CONFIG_VERSION: u32 = 1;
|
||||
pub(crate) const CUSTOM_SIMULATED_GAS_MULTIPLIER: f32 = 1.4;
|
||||
pub(crate) const CUSTOM_SIMULATED_GAS_MULTIPLIER: f32 = 1.5;
|
||||
|
||||
#[derive(Debug, Default, Clone, PartialEq, Eq)]
|
||||
pub struct Config {
|
||||
|
||||
@@ -21,7 +21,7 @@ export const SendModal = ({ onClose, hasStorybookStyles }: { onClose: () => void
|
||||
const [gasError, setGasError] = useState<string>();
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [userFees, setUserFees] = useState<DecCoin>();
|
||||
const [memo, setMemo] = useState<string>();
|
||||
const [memo, setMemo] = useState<string>('');
|
||||
const [txDetails, setTxDetails] = useState<TTransactionDetails>();
|
||||
const [showMoreOptions, setShowMoreOptions] = useState(false);
|
||||
|
||||
@@ -37,7 +37,7 @@ export const SendModal = ({ onClose, hasStorybookStyles }: { onClose: () => void
|
||||
useEffect(() => {
|
||||
if (!showMoreOptions) {
|
||||
setUserFees(undefined);
|
||||
setMemo(undefined);
|
||||
setMemo('');
|
||||
}
|
||||
}, [showMoreOptions]);
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ export const simulateVestingUpdateGatewayConfig = async (update: GatewayConfigUp
|
||||
export const simulateWithdrawVestedCoins = async (args: any) =>
|
||||
invokeWrapper<FeeDetails>('simulate_withdraw_vested_coins', args);
|
||||
|
||||
export const simulateSend = async ({ address, amount }: { address: string; amount: DecCoin; memo: string }) =>
|
||||
export const simulateSend = async ({ address, amount, memo }: { address: string; amount: DecCoin; memo: string }) =>
|
||||
invokeWrapper<FeeDetails>('simulate_send', { address, amount, memo });
|
||||
|
||||
export const getCustomFees = async ({ feesAmount }: { feesAmount: DecCoin }) =>
|
||||
|
||||
Reference in New Issue
Block a user