diff --git a/Makefile b/Makefile index f3cb63092..e101e6cc4 100644 --- a/Makefile +++ b/Makefile @@ -25,12 +25,10 @@ test: cargo test --doc package_%.json: - cd crates/sui-transaction-builder/tests/$(*F) && sui move build --dump-bytecode-as-base64 >> $@ + cd crates/sui-transaction-builder/tests/$(*F) && sui move build --dump-bytecode-as-base64 >> ../../$@ .PHONY: test-with-localnet -test-with-localnet: - package_example_v1.json - package_example_v2.json +test-with-localnet: package_test_example_v1.json package_test_example_v2.json cargo nextest run -p sui-graphql-client -p sui-transaction-builder .PHONY: wasm diff --git a/crates/sui-transaction-builder/src/lib.rs b/crates/sui-transaction-builder/src/lib.rs index 037947e81..2aa141166 100644 --- a/crates/sui-transaction-builder/src/lib.rs +++ b/crates/sui-transaction-builder/src/lib.rs @@ -902,7 +902,7 @@ mod tests { let mut tx = TransactionBuilder::new(); let (address, pk, _) = helper_setup(&mut tx, &client).await; - let package = move_package_data("test_example_v1_build_output.json"); + let package = move_package_data("package_test_example_v1.json"); let sender = tx.input(Serialized(&address)); let upgrade_cap = tx.publish(package.modules, package.dependencies); tx.transfer_objects(vec![upgrade_cap], sender); @@ -918,7 +918,7 @@ mod tests { let mut tx = TransactionBuilder::new(); let (address, pk, coins) = helper_setup(&mut tx, &client).await; - let package = move_package_data("test_example_v1_build_output.json"); + let package = move_package_data("package_test_example_v2.json"); let sender = tx.input(Serialized(&address)); let upgrade_cap = tx.publish(package.modules, package.dependencies); tx.transfer_objects(vec![upgrade_cap], sender); @@ -978,7 +978,7 @@ mod tests { } let upgrade_policy = tx.input(Serialized(&0u8)); - let updated_package = move_package_data("test_example_v2_build_output.json"); + let updated_package = move_package_data("package_test_example_v2.json"); let digest_arg = tx.input(Serialized(&updated_package.digest)); // we need this ticket to authorize the upgrade