Skip to content

Commit 7cf5027

Browse files
authored
fix: getContractCallsQuote validation (#216)
1 parent 19b7480 commit 7cf5027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const getContractCallsQuote = async (
153153
}
154154
})
155155
if (
156-
!isContractCallsRequestWithFromAmount(params) ||
156+
!isContractCallsRequestWithFromAmount(params) &&
157157
!isContractCallsRequestWithToAmount(params)
158158
) {
159159
throw new SDKError(

0 commit comments

Comments
 (0)