Skip to content

Commit

Permalink
fix: issuer id in transaction options (#8516)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpl121 authored May 13, 2024
1 parent b1c0f29 commit 846ef4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ export function getAccountTransactionOptions(
value: new AccountAddress(accountId),
},
allowMicroAmount: true,
issuerId: accountId,
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { TransactionOptions } from '@iota/sdk/out/types'
import { getSelectedWallet } from '../stores'

export function getDefaultTransactionOptions(): TransactionOptions {
export function getDefaultTransactionOptions(
accountId: string | undefined = getSelectedWallet()?.mainAccountId
): TransactionOptions | undefined {
if (!accountId) return
return {
remainderValueStrategy: {
/** The name of the strategy. */
Expand All @@ -9,5 +13,6 @@ export function getDefaultTransactionOptions(): TransactionOptions {
value: null,
},
allowMicroAmount: true,
issuerId: accountId,
}
}

0 comments on commit 846ef4f

Please sign in to comment.