diff --git a/nym-wallet/src-tauri/src/config/mod.rs b/nym-wallet/src-tauri/src/config/mod.rs index bdb369ade6..371a634398 100644 --- a/nym-wallet/src-tauri/src/config/mod.rs +++ b/nym-wallet/src-tauri/src/config/mod.rs @@ -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 { diff --git a/nym-wallet/src/components/Send/SendModal.tsx b/nym-wallet/src/components/Send/SendModal.tsx index 40c97eee3f..b8c1ca5eeb 100644 --- a/nym-wallet/src/components/Send/SendModal.tsx +++ b/nym-wallet/src/components/Send/SendModal.tsx @@ -21,7 +21,7 @@ export const SendModal = ({ onClose, hasStorybookStyles }: { onClose: () => void const [gasError, setGasError] = useState(); const [isLoading, setIsLoading] = useState(false); const [userFees, setUserFees] = useState(); - const [memo, setMemo] = useState(); + const [memo, setMemo] = useState(''); const [txDetails, setTxDetails] = useState(); 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]); diff --git a/nym-wallet/src/requests/simulate.ts b/nym-wallet/src/requests/simulate.ts index 94bbcb9f5e..d15d41d5c6 100644 --- a/nym-wallet/src/requests/simulate.ts +++ b/nym-wallet/src/requests/simulate.ts @@ -69,7 +69,7 @@ export const simulateVestingUpdateGatewayConfig = async (update: GatewayConfigUp export const simulateWithdrawVestedCoins = async (args: any) => invokeWrapper('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('simulate_send', { address, amount, memo }); export const getCustomFees = async ({ feesAmount }: { feesAmount: DecCoin }) =>