forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the transfer_to function to transfer any native asset (FuelLabs…
…#1935) * refactor: rename transfer_to to transfer * fix: add new param asset_id to transfer() * refactor: rename recipient & destination to to * docs: update wording to reflect param name changes * test: update test contract * test: stub out new test for transfer * test: add test for transfer to address * test: fix old tests to use new sdk features * test: add test for transfer to contract * docs: cleanup and improve docstrings * docs: fixup * style: format comments * Update sway-lib-std/src/token.sw Co-authored-by: John Adler <[email protected]> * Update sway-lib-std/src/token.sw Co-authored-by: John Adler <[email protected]> * Update sway-lib-std/src/token.sw Co-authored-by: John Adler <[email protected]> * style: formatting docs Co-authored-by: John Adler <[email protected]>
- Loading branch information
Showing
3 changed files
with
133 additions
and
47 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