Skip to content

Commit

Permalink
fix createOfferForIds when called from WalletConnect (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
paninaro committed May 30, 2023
1 parent 3287441 commit 96c423f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/services/WalletService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ export default class Wallet extends Service {
validateOnly?: boolean;
disableJSONFormatting?: boolean;
}) {
const { disableJSONFormatting, ...restArgs } = args;
const { disableJSONFormatting, driverDict, ...restArgs } = args;
return this.command<{ offer: string; tradeRecord: TradeRecord }>(
'create_offer_for_ids',
restArgs,
{ driver_dict: driverDict, ...restArgs },
false,
undefined,
disableJSONFormatting
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/constants/WalletConnectCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const walletConnectCommands: WalletConnectCommand[] = [
service: ServiceName.WALLET,
params: [
{
name: WalletConnectCommandParamName.WALLET_IDS_AND_AMOUNTS,
name: WalletConnectCommandParamName.OFFER,
label: <Trans>Wallet Ids and Amounts</Trans>,
type: 'object',
displayComponent: (value, params, values, onChange) => (
Expand Down

0 comments on commit 96c423f

Please sign in to comment.