Skip to content

Commit

Permalink
fix(swap): tx
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Aug 1, 2024
1 parent 35cde3d commit 0a1db8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/wallet-mobile/src/features/Swap/common/useSwapTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const useSwapTx = (options?: UseMutationOptions<YoroiUnsignedTx, Error, {

const {wallet, meta} = useSelectedWallet()
const mutation = useMutationWithInvalidations({
mutationFn: (data) => wallet.createUnsignedTx({entries: data.entries, metadata, addressMode: meta.addressMode}),
mutationFn: (data) =>
wallet.createUnsignedTx({entries: data.entries, auxiliaryData: metadata, addressMode: meta.addressMode}),
invalidateQueries: [['useCreateOrder']],
...options,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ export const CompletedOrdersSkeleton = () => {
<View style={styles.flex}>
{[0, 1, 2, 3].map((index) => (
<React.Fragment key={index}>
<ExpandableInfoCardSkeleton />
<View style={styles.skeletonCard}>
<ExpandableInfoCardSkeleton />
</View>

<Spacer height={20} />
</React.Fragment>
Expand Down Expand Up @@ -385,6 +387,9 @@ const useStyles = () => {
flex: 1,
backgroundColor: color.bg_color_high,
},
skeletonCard: {
...atoms.px_lg,
},
flex: {
flex: 1,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/yoroi-wallets/cardano/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface YoroiWallet {
// Sending
createUnsignedTx(params: {
entries: YoroiEntry[]
metadata?: Array<CardanoTypes.TxMetadata>
auxiliaryData?: Array<CardanoTypes.TxMetadata>
addressMode: Wallet.AddressMode
}): Promise<YoroiUnsignedTx>
signTx(signRequest: YoroiUnsignedTx, rootKey: string): Promise<YoroiSignedTx>
Expand Down

0 comments on commit 0a1db8e

Please sign in to comment.