Skip to content

Commit 6ca91cc

Browse files
fix: refund target signing and empty memo (#2346)
1 parent 82e270a commit 6ca91cc

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

apps/extension/src/background/keyring/keyring.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,11 @@ export class KeyRing {
801801

802802
let privateKey: string;
803803

804-
if (account.public.type === AccountType.PrivateKey) {
804+
if (
805+
[AccountType.PrivateKey, AccountType.Disposable].includes(
806+
account.public.type
807+
)
808+
) {
805809
privateKey = secret;
806810
} else {
807811
const sdk = this.sdkService.getSdk();

apps/namadillo/src/App/Masp/MaspShield.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const MaspShield = ({
3535
setAssetSelectorModalOpen,
3636
}: MaspShieldProps): JSX.Element => {
3737
// COMPONENT STATE
38-
const [memo, setMemo] = useState("");
38+
const [memo, setMemo] = useState<string | undefined>();
3939
const [displayAmount, setDisplayAmount] = useAtom(transferAmountAtom);
4040
const [selectedAssetWithAmount, setSelectedAssetWithAmount] = useState<
4141
AssetWithAmountAndChain | undefined

apps/namadillo/src/App/Masp/MaspUnshield.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const MaspUnshield = ({
3434
setAssetSelectorModalOpen,
3535
}: MaspUnshieldProps): JSX.Element => {
3636
// COMPONENT STATE
37-
const [memo, setMemo] = useState("");
37+
const [memo, setMemo] = useState<string | undefined>();
3838
const [displayAmount, setDisplayAmount] = useAtom(transferAmountAtom);
3939
const [selectedAssetWithAmount, setSelectedAssetWithAmount] = useState<
4040
AssetWithAmountAndChain | undefined

apps/namadillo/src/App/NamadaTransfer/NamadaTransfer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const NamadaTransfer = ({
4242
// COMPONENT STATE
4343
const [displayAmount, setDisplayAmount] = useAtom(transferAmountAtom);
4444
const [customAddress] = useState<string>("");
45-
const [memo, setMemo] = useState<string>("");
45+
const [memo, setMemo] = useState<string | undefined>();
4646
const [selectedAssetWithAmount, setSelectedAssetWithAmount] = useState<
4747
AssetWithAmountAndChain | undefined
4848
>();

apps/namadillo/src/App/Transfer/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export type TransferModuleProps = {
4444
isShieldedAddress: boolean;
4545
memo?: string;
4646
onChangeAddress: (address?: string) => void;
47-
onChangeMemo?: Dispatch<SetStateAction<string>>;
47+
onChangeMemo?: Dispatch<SetStateAction<string | undefined>>;
4848
};
4949
requiresIbcChannels?: boolean;
5050
feeProps?: TransactionFeeProps;

0 commit comments

Comments
 (0)