Skip to content

Commit 846ef4f

Browse files
authored
fix: issuer id in transaction options (#8516)
1 parent b1c0f29 commit 846ef4f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/shared/lib/core/wallet/utils/getAccountTransactionOptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ export function getAccountTransactionOptions(
1313
value: new AccountAddress(accountId),
1414
},
1515
allowMicroAmount: true,
16+
issuerId: accountId,
1617
}
1718
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { TransactionOptions } from '@iota/sdk/out/types'
2+
import { getSelectedWallet } from '../stores'
23

3-
export function getDefaultTransactionOptions(): TransactionOptions {
4+
export function getDefaultTransactionOptions(
5+
accountId: string | undefined = getSelectedWallet()?.mainAccountId
6+
): TransactionOptions | undefined {
7+
if (!accountId) return
48
return {
59
remainderValueStrategy: {
610
/** The name of the strategy. */
@@ -9,5 +13,6 @@ export function getDefaultTransactionOptions(): TransactionOptions {
913
value: null,
1014
},
1115
allowMicroAmount: true,
16+
issuerId: accountId,
1217
}
1318
}

0 commit comments

Comments
 (0)