Skip to content

Commit d37bd8d

Browse files
committed
ALL-10768 - Fix stellar send
1 parent 04cb03f commit d37bd8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žpackage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tatumio",
3-
"version": "2.2.91",
3+
"version": "2.2.92",
44
"license": "MIT",
55
"repository": "https://github.com/tatumio/tatum-js",
66
"scripts": {

β€Žpackages/blockchain/xlm/src/lib/services/xlm.tx.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const xlmTxService = (apiCalls: XlmApiCallsType) => {
7171
const balance = account.balances?.find((b) => b.asset_type === Asset.native().getAssetType())
7272
const requiredBalance = new BigNumber(amount).plus(0.00001)
7373
const accountBalance = new BigNumber(balance?.balance || 0)
74-
if (accountBalance.isLessThan(requiredBalance)) {
74+
if (!options?.token && !options?.issuerAccount && accountBalance.isLessThan(requiredBalance)) {
7575
throw new XlmSdkError(
7676
SdkErrorCode.INSUFFICIENT_FUNDS,
7777
`Insufficient funds to create transaction from sender account ${fromAccount} -> available balance is ${accountBalance.toString()}, required balance is ${requiredBalance.toString()}.`,

0 commit comments

Comments
Β (0)