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.
Add
tx_input_owner()
function to std. (FuelLabs#2215)
* feat: add tx_input_message_owner() function * feat: also get owner from InputMessage * fix: typo * feat: allow getting owner of coin & message inputs * refactor: use new tx function for input owner * docs: improve documentation * test: update tests with todos * refactor: change tx_input_owner to accept an index * refactor: use new tx_input_owner and handle Option::None case * fix: switch offsets to u32 type * fix: remove redundent Option wrapper * fix: use index rather than ptr to get type * test: update types in test contract * test: fix test * fix: remove unneeded check and error * fix: change integers in tx_input_owner to u64 Co-authored-by: Mohammad Fawaz <[email protected]>
- Loading branch information
1 parent
6524a09
commit d472bf3
Showing
4 changed files
with
53 additions
and
19 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