Skip to content

Commit 134301a

Browse files
committed
update tests
1 parent 1ac2385 commit 134301a

File tree

13 files changed

+729
-728
lines changed

13 files changed

+729
-728
lines changed

test/src/e2e_vm_tests/test_programs/should_pass/language/attributes_deprecated/stdout.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ warning: Function is deprecated
173173
____
174174

175175
warning: Function is deprecated
176-
--> test/src/e2e_vm_tests/test_programs/should_pass/language/attributes_deprecated/src/main.<autogenerated>.sw:9:15
176+
--> test/src/e2e_vm_tests/test_programs/should_pass/language/attributes_deprecated/src/main.<autogenerated>.sw:8:15
177177
|
178178
...
179-
9 | let _result = __contract_entry_deprecated_abi_provided_method();
179+
8 | let _result = __contract_entry_deprecated_abi_provided_method();
180180
| ----------------------------------------------- Function "deprecated_abi_provided_method" is deprecated.
181181
|
182182
____

test/src/e2e_vm_tests/test_programs/should_pass/language/main_args/main_args_various_types/stdout.snap

Lines changed: 668 additions & 667 deletions
Large diffs are not rendered by default.

test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract/stdout.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,78 +8,78 @@ output:
88
Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-core)
99
Compiling library panicking_lib (test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_lib)
1010
Compiling contract panicking_contract (test/src/e2e_vm_tests/test_programs/should_pass/language/panic_expression/panicking_contract)
11-
Finished release [optimized + fuel] target(s) [7.152 KB] in ???
11+
Finished release [optimized + fuel] target(s) [6.544 KB] in ???
1212
Running 11 tests, filtered 0 tests
1313

1414
tested -- panicking_contract
1515

16-
test test_directly_panicking_method ... ok (???, 1554 gas)
16+
test test_directly_panicking_method ... ok (???, 1051 gas)
1717
revert code: ffffffff00000000
1818
├─ panic message: Error C.
1919
├─ panic value: C(true)
2020
└─ panicked in: panicking_contract@1.2.3, src/main.sw:22:9
2121
decoded log values:
2222
C(true), log rb: 5503570629422409978
23-
test test_nested_panic_inlined ... ok (???, 2812 gas)
23+
test test_nested_panic_inlined ... ok (???, 2309 gas)
2424
revert code: ffffffff00000005
2525
├─ panic message: Error E.
2626
├─ panic value: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }])
2727
└─ panicked in: panicking_lib, src/lib.sw:41:9
2828
decoded log values:
2929
E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]), log rb: 5503570629422409978
30-
test test_nested_panic_inlined_same_revert_code ... ok (???, 2812 gas)
30+
test test_nested_panic_inlined_same_revert_code ... ok (???, 2309 gas)
3131
revert code: ffffffff00000005
3232
├─ panic message: Error E.
3333
├─ panic value: E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }])
3434
└─ panicked in: panicking_lib, src/lib.sw:41:9
3535
decoded log values:
3636
E([AsciiString { data: "this" }, AsciiString { data: "is not" }, AsciiString { data: "the best practice" }]), log rb: 5503570629422409978
37-
test test_nested_panic_not_inlined ... ok (???, 3007 gas)
37+
test test_nested_panic_not_inlined ... ok (???, 2504 gas)
3838
revert code: ffffffff00000006
3939
├─ panic message: Error E.
4040
├─ panic value: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }])
4141
└─ panicked in: panicking_lib, src/lib.sw:35:5
4242
decoded log values:
4343
E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]), log rb: 5503570629422409978
44-
test test_nested_panic_not_inlined_same_revert_code ... ok (???, 3007 gas)
44+
test test_nested_panic_not_inlined_same_revert_code ... ok (???, 2504 gas)
4545
revert code: ffffffff00000006
4646
├─ panic message: Error E.
4747
├─ panic value: E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }])
4848
└─ panicked in: panicking_lib, src/lib.sw:35:5
4949
decoded log values:
5050
E([AsciiString { data: "to have" }, AsciiString { data: "strings" }, AsciiString { data: "in error enum variants" }]), log rb: 5503570629422409978
51-
test test_generic_panic_with_unit ... ok (???, 2012 gas)
51+
test test_generic_panic_with_unit ... ok (???, 1509 gas)
5252
revert code: ffffffff00000004
5353
├─ panic value: ()
5454
└─ panicked in: panicking_lib, src/lib.sw:74:5
5555
decoded log values:
5656
(), log rb: 3330666440490685604
57-
test test_generic_panic_with_unit_same_revert_code ... ok (???, 2012 gas)
57+
test test_generic_panic_with_unit_same_revert_code ... ok (???, 1509 gas)
5858
revert code: ffffffff00000004
5959
├─ panic value: ()
6060
└─ panicked in: panicking_lib, src/lib.sw:74:5
6161
decoded log values:
6262
(), log rb: 3330666440490685604
63-
test test_generic_panic_with_str ... ok (???, 2020 gas)
63+
test test_generic_panic_with_str ... ok (???, 1517 gas)
6464
revert code: ffffffff00000002
6565
├─ panic message: generic panic with string
6666
└─ panicked in: panicking_lib, src/lib.sw:74:5
6767
decoded log values:
6868
AsciiString { data: "generic panic with string" }, log rb: 10098701174489624218
69-
test test_generic_panic_with_different_str_same_revert_code ... ok (???, 1702 gas)
69+
test test_generic_panic_with_different_str_same_revert_code ... ok (???, 1199 gas)
7070
revert code: ffffffff00000002
7171
├─ panic message: generic panic with different string
7272
└─ panicked in: panicking_lib, src/lib.sw:74:5
7373
decoded log values:
7474
AsciiString { data: "generic panic with different string" }, log rb: 10098701174489624218
75-
test test_generic_panic_with_error_type_enum ... ok (???, 1809 gas)
75+
test test_generic_panic_with_error_type_enum ... ok (???, 1306 gas)
7676
revert code: ffffffff00000003
7777
├─ panic message: Error A.
7878
├─ panic value: A
7979
└─ panicked in: panicking_lib, src/lib.sw:74:5
8080
decoded log values:
8181
A, log rb: 5503570629422409978
82-
test test_generic_panic_with_error_type_enum_different_variant_same_revert_code ... ok (???, 1972 gas)
82+
test test_generic_panic_with_error_type_enum_different_variant_same_revert_code ... ok (???, 1469 gas)
8383
revert code: ffffffff00000003
8484
├─ panic message: Error B.
8585
├─ panic value: B(42)

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/array_of_structs_caller/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::hash::*;
66
#[cfg(experimental_new_encoding = false)]
77
const CONTRACT_ID = 0x14ed3cd06c2947248f69d54bfa681fe40d26267be84df7e19e253622b7921bbe;
88
#[cfg(experimental_new_encoding = true)]
9-
const CONTRACT_ID = 0xa2dbb03c506605e7ab9dd56a889de3fd46e9544e6d7796ea3f13ec91f7ed0d24; // AUTO-CONTRACT-ID ../../test_contracts/array_of_structs_contract --release
9+
const CONTRACT_ID = 0xf99f6d5a72ba129ea6dc84191c835be80f3f44815371f74ffafaf5ed83b96f7f; // AUTO-CONTRACT-ID ../../test_contracts/array_of_structs_contract --release
1010

1111
fn get_address() -> Option<std::address::Address> {
1212
Some(CONTRACT_ID.into())

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/asset_ops_test/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use test_fuel_coin_abi::*;
99
#[cfg(experimental_new_encoding = false)]
1010
const FUEL_COIN_CONTRACT_ID = 0xec2277ebe007ade87e3d797c3b1e070dcd542d5ef8f038b471f262ef9cebc87c;
1111
#[cfg(experimental_new_encoding = true)]
12-
const FUEL_COIN_CONTRACT_ID = 0xd43b0c646f5089d01d2cc11b1192fd7a3671a585248894e45da87a96072d82c8; // AUTO-CONTRACT-ID ../../test_contracts/test_fuel_coin_contract --release
12+
const FUEL_COIN_CONTRACT_ID = 0x160e5290b092d094f834e02227713c9299e46154dbcd5d75bed4314aa849a7cd; // AUTO-CONTRACT-ID ../../test_contracts/test_fuel_coin_contract --release
1313

1414
#[cfg(experimental_new_encoding = false)]
1515
const BALANCE_CONTRACT_ID = 0xf6cd545152ac83225e8e7df2efb5c6fa6e37bc9b9e977b5ea8103d28668925df;

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_abi_with_tuples/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use abi_with_tuples::{MyContract, Location, Person};
66
#[cfg(experimental_new_encoding = false)]
77
const CONTRACT_ID = 0xfdc14550c8aee742cd556d0ab7f378b7be0d3b1e6e086c097352e94590d4ed02;
88
#[cfg(experimental_new_encoding = true)]
9-
const CONTRACT_ID = 0x648494ce868c7d4f8aba6280bf6162598cd4a0570abbabd132bbc69e117ab61d; // AUTO-CONTRACT-ID ../../test_contracts/abi_with_tuples_contract --release
9+
const CONTRACT_ID = 0xfc886f6a7de7e50c8d38b9ba63b373525e5b2036d62c14307af0029c7aef6f80; // AUTO-CONTRACT-ID ../../test_contracts/abi_with_tuples_contract --release
1010

1111
fn main() -> bool {
1212
let the_abi = abi(MyContract, CONTRACT_ID);

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_basic_storage/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use basic_storage_abi::{BasicStorage, Quad};
44
#[cfg(experimental_new_encoding = false)]
55
const CONTRACT_ID = 0x94db39f409a31b9f2ebcadeea44378e419208c20de90f5d8e1e33dc1523754cb;
66
#[cfg(experimental_new_encoding = true)]
7-
const CONTRACT_ID = 0x9f1d81740144ebefbe4ee26458cf73b3acab597bf3747cd527e4a3f68a07e8ef; // AUTO-CONTRACT-ID ../../test_contracts/basic_storage --release
7+
const CONTRACT_ID = 0x32257ad1e8d19a31a7bf64d09f02acbc73a62c0738a854a6fb3ab5d9546d6827; // AUTO-CONTRACT-ID ../../test_contracts/basic_storage --release
88

99
fn main() -> u64 {
1010
let addr = abi(BasicStorage, CONTRACT_ID);

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_contract_with_type_aliases/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use contract_with_type_aliases_abi::*;
55
#[cfg(experimental_new_encoding = false)]
66
const CONTRACT_ID = 0x0cbeb6efe3104b460be769bdc4ea101ebf16ccc16f2d7b667ec3e1c7f5ce35b5;
77
#[cfg(experimental_new_encoding = true)]
8-
const CONTRACT_ID = 0x4c341dc5ad205b89f417a01bf8900707f3b3dc5306efaf9356a312154625f355; // AUTO-CONTRACT-ID ../../test_contracts/contract_with_type_aliases --release
8+
const CONTRACT_ID = 0xbf1ffa53839dcab99d8bde2d0a263f936eaf729ef79acfb9c938ea182bd97178; // AUTO-CONTRACT-ID ../../test_contracts/contract_with_type_aliases --release
99

1010
fn main() {
1111
let caller = abi(MyContract, CONTRACT_ID);

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/call_increment_contract/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use dynamic_contract_call::*;
66
#[cfg(experimental_new_encoding = false)]
77
const CONTRACT_ID = 0xd1b4047af7ef111c023ab71069e01dc2abfde487c0a0ce1268e4f447e6c6e4c2;
88
#[cfg(experimental_new_encoding = true)]
9-
const CONTRACT_ID = 0x64d9927975f35df1cca22c5af4e00f87fc0d2713dc50ed2758bd4317ec6f326e; // AUTO-CONTRACT-ID ../../test_contracts/increment_contract --release
9+
const CONTRACT_ID = 0xcb6dbf72b03abad360154353cdfcd4792e930e92ff6754b25df34e8de82087cf; // AUTO-CONTRACT-ID ../../test_contracts/increment_contract --release
1010

1111
fn main() -> bool {
1212
let the_abi = abi(Incrementor, CONTRACT_ID);

test/src/e2e_vm_tests/test_programs/should_pass/require_contract_deployment/caller_context_test/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use context_testing_abi::*;
66
#[cfg(experimental_new_encoding = false)]
77
const CONTRACT_ID = 0x6054c11cda000f5990373a4d61929396165be4dfdd61d5b7bd26da60ab0d8577;
88
#[cfg(experimental_new_encoding = true)]
9-
const CONTRACT_ID = 0x0f3e2f11d619178a85e77b691bad79f7a22e63e21c2028fbc0901e628952f675; // AUTO-CONTRACT-ID ../../test_contracts/context_testing_contract --release
9+
const CONTRACT_ID = 0x1eb6590bff3315dc0f777eee8a7bdb5e4dbde9f71f0e8f0a371ab180ad110d60; // AUTO-CONTRACT-ID ../../test_contracts/context_testing_contract --release
1010

1111
fn main() -> bool {
1212
let gas: u64 = u64::max();

0 commit comments

Comments
 (0)