File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed
test/src/e2e_vm_tests/test_programs/should_pass/stdlib/asset_id_into_bytes Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ [[package]]
2
+ name = "asset_id_into_bytes"
3
+ source = "member"
4
+ dependencies = ["std"]
5
+
6
+ [[package]]
7
+ name = "core"
8
+ source = "path+from-root-F9E4FAEF7F341E13"
9
+
10
+ [[package]]
11
+ name = "std"
12
+ source = "path+from-root-F9E4FAEF7F341E13"
13
+ dependencies = ["core"]
Original file line number Diff line number Diff line change
1
+ [project ]
2
+ authors = [" Fuel Labs <contact@fuel.sh>" ]
3
+ entry = " main.sw"
4
+ license = " Apache-2.0"
5
+ name = " asset_id_into_bytes"
6
+
7
+ [dependencies ]
8
+ std = { path = " ../../../../../../../sway-lib-std" }
Original file line number Diff line number Diff line change
1
+ script ;
2
+
3
+ fn main () -> bool {
4
+ use std :: bytes :: Bytes ;
5
+
6
+ let my_asset = AssetId :: zero ();
7
+ let my_bytes : Bytes = my_asset . into ();
8
+
9
+ true
10
+ }
Original file line number Diff line number Diff line change
1
+ category = " run"
2
+ expected_result = { action = " return" , value = 1 }
3
+ expected_result_new_encoding = { action = " return_data" , value = " 01" }
4
+ validate_abi = false
5
+ expected_warnings = 1
You can’t perform that action at this time.
0 commit comments