Skip to content

Commit

Permalink
Fix Makefile and tests filename
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Dec 2, 2024
1 parent f452cfa commit 318f569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions crates/sui-transaction-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 318f569

Please sign in to comment.