amend a few warnings

This commit is contained in:
Tommy Verrall
2023-12-08 14:08:59 +01:00
parent 23892fec8c
commit 2d57ed49e8
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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]);
+1 -1
View File
@@ -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 }) =>