-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: claiming txs reminder strategy (#8476)
* fix: displayed mana in tx details WIP * fix: improvements * fix: check type * fixes and improvements * fix * fix: Consolidation activities * fmt * fix linter * fix * fix: Claim to account * chore: alpha 9 * clean up * fix: clean up --------- Co-authored-by: cpl121 <cpeon@boxfish.studio> Co-authored-by: cpl121 <100352899+cpl121@users.noreply.github.com> Co-authored-by: evavirseda <evirseda@boxfish.studio> Co-authored-by: Begoña Álvarez de la Cruz <balvarez@boxfish.studio>
- Loading branch information
1 parent
9f425e4
commit 868e151
Showing
9 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/shared/lib/core/wallet/utils/getAccountTransactionOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { AccountAddress, TransactionOptions } from '@iota/sdk/out/types' | ||
import { getSelectedWallet } from '../stores' | ||
|
||
export function getAccountTransactionOptions( | ||
accountId: string | undefined = getSelectedWallet()?.mainAccountId | ||
): TransactionOptions | undefined { | ||
if (!accountId) return | ||
return { | ||
remainderValueStrategy: { | ||
/** The name of the strategy. */ | ||
strategy: 'CustomAddress', | ||
/** Only required for `CustomAddress`. */ | ||
value: new AccountAddress(accountId), | ||
}, | ||
allowMicroAmount: true, | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
packages/shared/lib/core/wallet/utils/getDefaultTransactionOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters