Skip to content

Commit cec5231

Browse files
committed
update tests
1 parent 52473a2 commit cec5231

File tree

12 files changed

+15
-16
lines changed

12 files changed

+15
-16
lines changed

forc-plugins/forc-client/tests/deploy.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ async fn test_simple_deploy() {
377377
node.kill().unwrap();
378378
let expected = vec![DeployedPackage::Contract(DeployedContract {
379379
id: ContractId::from_str(
380-
"91c435d6cdb720db92097958163bc43dbc5c4acfbb3d98025039addb9e2da8bb",
380+
"5b8ab9ee7e3b6c25cf1e8bf57e2c7aaafcf3c75181de5a49d926ef00a8817645",
381381
)
382382
.unwrap(),
383383
proxy: None,
@@ -421,7 +421,7 @@ async fn test_deploy_submit_only() {
421421
node.kill().unwrap();
422422
let expected = vec![DeployedPackage::Contract(DeployedContract {
423423
id: ContractId::from_str(
424-
"91c435d6cdb720db92097958163bc43dbc5c4acfbb3d98025039addb9e2da8bb",
424+
"5b8ab9ee7e3b6c25cf1e8bf57e2c7aaafcf3c75181de5a49d926ef00a8817645",
425425
)
426426
.unwrap(),
427427
proxy: None,
@@ -468,12 +468,12 @@ async fn test_deploy_fresh_proxy() {
468468
node.kill().unwrap();
469469
let impl_contract = DeployedPackage::Contract(DeployedContract {
470470
id: ContractId::from_str(
471-
"91c435d6cdb720db92097958163bc43dbc5c4acfbb3d98025039addb9e2da8bb",
471+
"5b8ab9ee7e3b6c25cf1e8bf57e2c7aaafcf3c75181de5a49d926ef00a8817645",
472472
)
473473
.unwrap(),
474474
proxy: Some(
475475
ContractId::from_str(
476-
"212c0edca7ddbb762d93a2446083d94df2db059d1f41ad49807223e8249669e5",
476+
"4417af589db78c23a63bbc435407092e6ef29028caf459d547d1610b59ed6e87",
477477
)
478478
.unwrap(),
479479
),
@@ -1123,7 +1123,7 @@ async fn deployed_predicate_call() {
11231123

11241124
// Check predicate balance again.
11251125
let balance = predicate.get_asset_balance(base_asset_id).await.unwrap();
1126-
assert_eq!(balance, 828);
1126+
assert_eq!(balance, 1700);
11271127

11281128
node.kill().unwrap();
11291129
}

forc/tests/cli_integration.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ fn test_forc_test_raw_logs() -> Result<(), rexpect::error::Error> {
5555
process.exp_string(" test test_log_2")?;
5656
process.exp_string("raw logs:")?;
5757
process.exp_string(r#"[{"LogData":{"data":"0000000000000002","digest":"cd04a4754498e06db5a13c5f371f1f04ff6d2470f24aa9bd886540e5dce77f70","id":"0000000000000000000000000000000000000000000000000000000000000000","is":10368,"len":8,"pc":11432,"ptr":67107840,"ra":0,"rb":1515152261580153489}}]"#)?;
58-
5958

6059
process.process.exit()?;
6160
Ok(())

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 = 0x9e0048a62c58414e5bbe689ad3fc0ef7f887bcf5668f01b5a60d513248d816c6; // AUTO-CONTRACT-ID ../../test_contracts/array_of_structs_contract --release
9+
const CONTRACT_ID = 0x21b28a02e7897b3f3d02c56ce2574257d6341ac25bd3a526cde40b0942c86762; // 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
@@ -14,7 +14,7 @@ const FUEL_COIN_CONTRACT_ID = 0x17aa1f86a9e0a25c639b22341c4af4d31f2335c4244cab2c
1414
#[cfg(experimental_new_encoding = false)]
1515
const BALANCE_CONTRACT_ID = 0xf6cd545152ac83225e8e7df2efb5c6fa6e37bc9b9e977b5ea8103d28668925df;
1616
#[cfg(experimental_new_encoding = true)]
17-
const BALANCE_CONTRACT_ID = 0xa52577728c59f4b6bc6cb06901f748ed182f4bf55aba325de8a2dc8369e86c08; // AUTO-CONTRACT-ID ../../test_contracts/balance_test_contract --release
17+
const BALANCE_CONTRACT_ID = 0xbff9e8a316a6a2d5ea598c074c428d90c76e62d1246edb47ce0d9d8fd6f967b8; // AUTO-CONTRACT-ID ../../test_contracts/balance_test_contract --release
1818

1919
fn main() -> bool {
2020
let default_gas = 1_000_000_000_000;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use balance_test_abi::BalanceTest;
55
#[cfg(experimental_new_encoding = false)]
66
const CONTRACT_ID = 0xf6cd545152ac83225e8e7df2efb5c6fa6e37bc9b9e977b5ea8103d28668925df;
77
#[cfg(experimental_new_encoding = true)]
8-
const CONTRACT_ID = 0xa52577728c59f4b6bc6cb06901f748ed182f4bf55aba325de8a2dc8369e86c08; // AUTO-CONTRACT-ID ../../test_contracts/balance_test_contract --release
8+
const CONTRACT_ID = 0xbff9e8a316a6a2d5ea598c074c428d90c76e62d1246edb47ce0d9d8fd6f967b8; // AUTO-CONTRACT-ID ../../test_contracts/balance_test_contract --release
99

1010
fn main() -> bool {
1111
let balance_test_contract = abi(BalanceTest, CONTRACT_ID);

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 = 0x73d7a99965a456f581c871ac5a55d7417797a08edc7edc043a66bed4f6352734; // AUTO-CONTRACT-ID ../../test_contracts/abi_with_tuples_contract --release
9+
const CONTRACT_ID = 0x4ebc193a30540a41e14bec67895c0d0fe4decd91e965cee21df97049d053f296; // 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 = 0x594defe1c4fecc7c453dc51ebf38bf52ec9514652fb71260d1bbcf66ddd2ff69; // AUTO-CONTRACT-ID ../../test_contracts/basic_storage --release
7+
const CONTRACT_ID = 0x4ab5917d6a603a8e5f99d286aa097e4c526a3d32d288ca887de8ab98524936e2; // 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 = 0xa0d3d4d39f1d9504b31696cfc28f42003c68f0743583084876d6ad914b42e063; // AUTO-CONTRACT-ID ../../test_contracts/contract_with_type_aliases --release
8+
const CONTRACT_ID = 0x52d3a57521340d21285864bfb5de88913cd4efebccccd87d174548381093e8fc; // 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_storage_enum/src/main.sw

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

1010
fn main() -> u64 {
1111
let caller = abi(StorageEnum, CONTRACT_ID);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use auth_testing_abi::AuthTesting;
55
#[cfg(experimental_new_encoding = false)]
66
const CONTRACT_ID = 0xc2eec20491b53aab7232cbd27c31d15417b4e9daf0b89c74cc242ef1295f681f;
77
#[cfg(experimental_new_encoding = true)]
8-
const CONTRACT_ID = 0xa6cc9483ac189658ac9e50dea8a2fcaf288d8bc413b30636f8af302fbb1e9960; // AUTO-CONTRACT-ID ../../test_contracts/auth_testing_contract --release
8+
const CONTRACT_ID = 0x8c55ebfbc2d92c9f4ccc7945e837173580f508031eacbc0120565d55d7992ac2; // AUTO-CONTRACT-ID ../../test_contracts/auth_testing_contract --release
99

1010
// should be false in the case of a script
1111
fn main() -> bool {

0 commit comments

Comments
 (0)