Skip to content

Commit

Permalink
fix: always set memo for SIP10, ref #5436
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed May 24, 2024
1 parent 8b26fdd commit 40f6059
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/store/transactions/token-transfer.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export function useGenerateFtTokenTransferUnsignedTx(info: Sip10CryptoAssetInfo)
const { contractId } = info;
const { contractAddress, contractAssetName, contractName } =
getStacksContractIdStringParts(contractId);

return useCallback(
async (values?: StacksSendFormValues | StacksTransactionFormValues) => {
try {
Expand Down Expand Up @@ -121,9 +120,7 @@ export function useGenerateFtTokenTransferUnsignedTx(info: Sip10CryptoAssetInfo)
standardPrincipalCVFromAddress(recipient),
];

if (info.hasMemo) {
functionArgs.push(memo);
}
functionArgs.push(memo);

const options = {
txData: {
Expand Down Expand Up @@ -151,7 +148,6 @@ export function useGenerateFtTokenTransferUnsignedTx(info: Sip10CryptoAssetInfo)
[
account,
info.decimals,
info.hasMemo,
network,
nextNonce?.nonce,
contractName,
Expand Down

0 comments on commit 40f6059

Please sign in to comment.