From 0953baa93061ba63a7917aee02fed99cf7baf3b5 Mon Sep 17 00:00:00 2001 From: Daniel Frederico Lins Leite Date: Fri, 21 Nov 2025 21:08:15 -0300 Subject: [PATCH] update tests --- .../json_abi_oracle_new_encoding.release.json | 64 +++++++++++++++++++ .../asset_ops_test/src/main.sw | 2 +- .../call_abi_with_tuples/src/main.sw | 2 +- .../caller_context_test/src/main.sw | 2 +- .../nested_struct_args_caller/src/main.sw | 2 +- .../storage_access_caller/src/main.sw | 2 +- 6 files changed, 69 insertions(+), 5 deletions(-) diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/language/configurable_consts/json_abi_oracle_new_encoding.release.json b/test/src/e2e_vm_tests/test_programs/should_pass/language/configurable_consts/json_abi_oracle_new_encoding.release.json index 8bce5863c1..2d1dda213c 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/language/configurable_consts/json_abi_oracle_new_encoding.release.json +++ b/test/src/e2e_vm_tests/test_programs/should_pass/language/configurable_consts/json_abi_oracle_new_encoding.release.json @@ -65,6 +65,7 @@ "name": "BOOL", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4616 ======= @@ -76,6 +77,9 @@ ======= "offset": 4408 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4272 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b", @@ -83,6 +87,7 @@ "name": "U8", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4808 ======= @@ -94,6 +99,9 @@ ======= "offset": 4600 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4464 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b", @@ -101,6 +109,7 @@ "name": "ANOTHER_U8", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4544 ======= @@ -112,6 +121,9 @@ ======= "offset": 4336 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4200 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "29881aad8730c5ab11d275376323d8e4ff4179aae8ccb6c13fe4902137e162ef", @@ -119,6 +131,7 @@ "name": "U16", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4752 ======= @@ -130,6 +143,9 @@ ======= "offset": 4544 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4408 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc", @@ -137,6 +153,7 @@ "name": "U32", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4792 ======= @@ -148,6 +165,9 @@ ======= "offset": 4584 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4448 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc", @@ -155,6 +175,7 @@ "name": "U64", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4800 ======= @@ -166,6 +187,9 @@ ======= "offset": 4592 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4456 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e", @@ -173,6 +197,7 @@ "name": "U256", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4760 ======= @@ -184,6 +209,9 @@ ======= "offset": 4552 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4416 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b", @@ -191,6 +219,7 @@ "name": "B256", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4584 ======= @@ -202,6 +231,9 @@ ======= "offset": 4376 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4240 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "81fc10c4681a3271cf2d66b2ec6fbc8ed007a442652930844fcf11818c295bff", @@ -209,6 +241,7 @@ "name": "CONFIGURABLE_STRUCT", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4704 ======= @@ -220,6 +253,9 @@ ======= "offset": 4496 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4360 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "a2922861f03be8a650595dd76455b95383a61b46dd418f02607fa2e00dc39d5c", @@ -227,6 +263,7 @@ "name": "CONFIGURABLE_ENUM_A", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4624 ======= @@ -238,6 +275,9 @@ ======= "offset": 4416 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4280 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "a2922861f03be8a650595dd76455b95383a61b46dd418f02607fa2e00dc39d5c", @@ -245,6 +285,7 @@ "name": "CONFIGURABLE_ENUM_B", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4664 ======= @@ -256,6 +297,9 @@ ======= "offset": 4456 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4320 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "4926d35d1a5157936b0a29bc126b8aace6d911209a5c130e9b716b0c73643ea6", @@ -263,6 +307,7 @@ "name": "ARRAY_BOOL", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4552 ======= @@ -274,6 +319,9 @@ ======= "offset": 4344 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4208 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "776fb5a3824169d6736138565fdc20aad684d9111266a5ff6d5c675280b7e199", @@ -281,6 +329,7 @@ "name": "ARRAY_U64", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4560 ======= @@ -292,6 +341,9 @@ ======= "offset": 4352 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4216 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "c998ca9a5f221fe7b5c66ae70c8a9562b86d964408b00d17f883c906bc1fe4be", @@ -299,6 +351,7 @@ "name": "TUPLE_BOOL_U64", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4736 ======= @@ -310,6 +363,9 @@ ======= "offset": 4528 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4392 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "94f0fa95c830be5e4f711963e83259fe7e8bc723278ab6ec34449e791a99b53a", @@ -317,6 +373,7 @@ "name": "STR_4", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4728 ======= @@ -328,6 +385,9 @@ ======= "offset": 4520 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4384 +>>>>>>> e97c5cafe (update tests) }, { "concreteTypeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b", @@ -335,6 +395,7 @@ "name": "NOT_USED", <<<<<<< HEAD <<<<<<< HEAD +<<<<<<< HEAD <<<<<<< HEAD "offset": 4720 ======= @@ -346,6 +407,9 @@ ======= "offset": 4512 >>>>>>> b5b612fcb (update tests) +======= + "offset": 4376 +>>>>>>> e97c5cafe (update tests) } ], "encodingVersion": "1", diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/asset_ops_test/src/main.sw b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/asset_ops_test/src/main.sw index 1c13b2c38b..9465aa65e7 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/asset_ops_test/src/main.sw +++ b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/asset_ops_test/src/main.sw @@ -9,7 +9,7 @@ use test_fuel_coin_abi::*; #[cfg(experimental_new_encoding = false)] const FUEL_COIN_CONTRACT_ID = 0xec2277ebe007ade87e3d797c3b1e070dcd542d5ef8f038b471f262ef9cebc87c; #[cfg(experimental_new_encoding = true)] -const FUEL_COIN_CONTRACT_ID = 0x81114b99801793bccd9f6910b877a08017e774796f51f0214ac31f613771c3a8; // AUTO-CONTRACT-ID ../../test_contracts/test_fuel_coin_contract --release +const FUEL_COIN_CONTRACT_ID = 0x94b5fec0e420392f8db8c763f7ccd8b9b95395c092c80c073b836f297c74a801; // AUTO-CONTRACT-ID ../../test_contracts/test_fuel_coin_contract --release #[cfg(experimental_new_encoding = false)] const BALANCE_CONTRACT_ID = 0xf6cd545152ac83225e8e7df2efb5c6fa6e37bc9b9e977b5ea8103d28668925df; diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_abi_with_tuples/src/main.sw b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_abi_with_tuples/src/main.sw index eb96eacfb6..f73238166a 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_abi_with_tuples/src/main.sw +++ b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_abi_with_tuples/src/main.sw @@ -6,7 +6,7 @@ use abi_with_tuples::{MyContract, Location, Person}; #[cfg(experimental_new_encoding = false)] const CONTRACT_ID = 0xfdc14550c8aee742cd556d0ab7f378b7be0d3b1e6e086c097352e94590d4ed02; #[cfg(experimental_new_encoding = true)] -const CONTRACT_ID = 0x98d52336c320159daf918a4d2f87401e3b8d9f3c84b1c32104b5ee163e40dbe4; // AUTO-CONTRACT-ID ../../test_contracts/abi_with_tuples_contract --release +const CONTRACT_ID = 0x19d622bce479672e267405a79c0649efa875af3e4919b2c67d1cc0415bc745b9; // AUTO-CONTRACT-ID ../../test_contracts/abi_with_tuples_contract --release fn main() -> bool { let the_abi = abi(MyContract, CONTRACT_ID); diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/caller_context_test/src/main.sw b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/caller_context_test/src/main.sw index 09882c3e82..2ae267ec95 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/caller_context_test/src/main.sw +++ b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/caller_context_test/src/main.sw @@ -6,7 +6,7 @@ use context_testing_abi::*; #[cfg(experimental_new_encoding = false)] const CONTRACT_ID = 0x6054c11cda000f5990373a4d61929396165be4dfdd61d5b7bd26da60ab0d8577; #[cfg(experimental_new_encoding = true)] -const CONTRACT_ID = 0x5c30fd73b7c199ee05027d969778afb842994751df73577c30a14afc75df0bb2; // AUTO-CONTRACT-ID ../../test_contracts/context_testing_contract --release +const CONTRACT_ID = 0x92e1b3b103bf5c0e3c5ccf3512337e2c91283b9159a5bd7b55d52b6e7bbd4700; // AUTO-CONTRACT-ID ../../test_contracts/context_testing_contract --release fn main() -> bool { let gas: u64 = u64::max(); diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/nested_struct_args_caller/src/main.sw b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/nested_struct_args_caller/src/main.sw index 19c145a130..95a1f74d15 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/nested_struct_args_caller/src/main.sw +++ b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/nested_struct_args_caller/src/main.sw @@ -5,7 +5,7 @@ use nested_struct_args_abi::*; #[cfg(experimental_new_encoding = false)] const CONTRACT_ID = 0xe63d33a1b3a6903808b379f6a41a72fa8a370e8b76626775e7d9d2f9c4c5da40; #[cfg(experimental_new_encoding = true)] -const CONTRACT_ID = 0x9d7fb4ad635265fc55a5c9eca1b5569785a9cbdae8dd05c50087292f2e3f4260; // AUTO-CONTRACT-ID ../../test_contracts/nested_struct_args_contract --release +const CONTRACT_ID = 0x473ee2deb264bf78b5fa6057e54d48814c3b251fe3df48e5a3d40ba50a25deec; // AUTO-CONTRACT-ID ../../test_contracts/nested_struct_args_contract --release fn main() -> bool { let caller = abi(NestedStructArgs, CONTRACT_ID); diff --git a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/storage_access_caller/src/main.sw b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/storage_access_caller/src/main.sw index 44e91f89a1..03a7ed7fa3 100644 --- a/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/storage_access_caller/src/main.sw +++ b/test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/storage_access_caller/src/main.sw @@ -6,7 +6,7 @@ use std::hash::*; #[cfg(experimental_new_encoding = false)] const CONTRACT_ID = 0x3bc28acd66d327b8c1b9624c1fabfc07e9ffa1b5d71c2832c3bfaaf8f4b805e9; #[cfg(experimental_new_encoding = true)] -const CONTRACT_ID = 0x08259a690a4209743bb3be3bb6a400077f9d360d3e250d2cf11443a3563bbdb6; // AUTO-CONTRACT-ID ../../test_contracts/storage_access_contract --release +const CONTRACT_ID = 0x444fb78d9a9f5826fc5a41b88ab544d4cfae5905571fbd7235bb197c46fdb001; // AUTO-CONTRACT-ID ../../test_contracts/storage_access_contract --release fn main() -> bool { let caller = abi(StorageAccess, CONTRACT_ID);