Skip to content

Commit

Permalink
Fix message handler
Browse files Browse the repository at this point in the history
  • Loading branch information
faizov committed Apr 18, 2024
1 parent a3fe723 commit 1ffa0bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
UseSendMessageOptions,
useAccount,
useSendMessage,
useSendMessageHandler,
useSendMessageWithGas,
} from '@gear-js/react-hooks';

import { useSignlessTransactions } from '../context';
Expand Down Expand Up @@ -47,7 +47,7 @@ function useSignlessSendMessageHandler(
) {
const { account } = useAccount();
const { pair, voucher } = useSignlessTransactions();
const sendMessage = useSendMessageHandler(destination, metadata, { ...options, pair });
const sendMessage = useSendMessageWithGas(destination, metadata, { ...options, pair });

const sendSignlessMessage = (args: Omit<SendSignlessMessageOptions, 'gasLimit'>) => {
const sessionForAccount = pair ? account?.decodedAddress : null;
Expand Down

0 comments on commit 1ffa0bd

Please sign in to comment.