-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove transfer from IcrcTransferParams (#3324)
# Motivation The type `IcrcTransferParams` is defined as ``` export interface IcrcTransferParams { to: IcrcAccount; amount: bigint; memo?: Uint8Array; fromSubAccount?: SubAccountArray; createdAt?: bigint; fee: bigint; transfer: (params: TransferParams) => Promise<IcrcBlockIndex>; } ``` The field `transfer` is only used by `executeIcrcTransfer` and every other place where `IcrcTransferParams` is used, it's used as `Omit<IcrcTransferParams, "transfer">`. # Changes Remove `transfer` from `IcrcTransferParams` and at it back only to the params of `executeIcrcTransfer`. # Tests `npm run build` `npm run check` `npm run test` All still pass. # Todos - [ ] Add entry to changelog (if necessary). not necessary
- Loading branch information
Showing
5 changed files
with
8 additions
and
7 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
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