Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
fix(swapper): osmosis account 0 receiveAccountNumber (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre authored Feb 23, 2023
1 parent 95edf39 commit 125141c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/swapper/src/swappers/osmosis/OsmosisSwapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class OsmosisSwapper implements Swapper<ChainId> {
receiveAddress,
} = trade

if (!receiveAccountNumber)
if (receiveAccountNumber === undefined)
throw new SwapError('Receive account number not provided', {
code: SwapErrorType.RECEIVE_ACCOUNT_NUMBER_NOT_PROVIDED,
})
Expand Down

0 comments on commit 125141c

Please sign in to comment.