diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82bd6a7..071fa8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,17 +28,9 @@ jobs: toolchain: nightly override: true components: rustfmt, clippy - - - name: Cache Rust dependencies - uses: Swatinem/rust-cache@v2 - with: - workspaces: | - . -> target - - name: lint - ubuntu-latest if: success() || failure() run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh - - name: test ubuntu-latest if: success() || failure() - run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh + run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh \ No newline at end of file diff --git a/integration_tests/src/lib.rs b/integration_tests/src/lib.rs index 696997c..d479080 100644 --- a/integration_tests/src/lib.rs +++ b/integration_tests/src/lib.rs @@ -412,15 +412,15 @@ pub async fn test_success_private_transfer_to_another_foreign_account() { }; let new_commitment2 = { - let mut to_acc = nssa_core::account::Account::default(); - - to_acc.program_owner = [ - 1793544791, 852173979, 3315478100, 4158236927, 146723505, 3793635251, 999304864, - 2535706995, - ]; - - to_acc.balance += 100; - to_acc.nonce += 1; + let to_acc = nssa_core::account::Account { + program_owner: [ + 1793544791, 852173979, 3315478100, 4158236927, 146723505, 3793635251, 999304864, + 2535706995, + ], + balance: 100, + data: vec![], + nonce: 1, + }; nssa_core::Commitment::new(&to_npk_orig, &to_acc) }; @@ -565,15 +565,15 @@ pub async fn test_success_shielded_transfer_to_another_foreign_account() { tokio::time::sleep(Duration::from_secs(TIME_TO_WAIT_FOR_BLOCK_SECONDS)).await; let new_commitment2 = { - let mut to_acc = nssa_core::account::Account::default(); - - to_acc.program_owner = [ - 1793544791, 852173979, 3315478100, 4158236927, 146723505, 3793635251, 999304864, - 2535706995, - ]; - - to_acc.balance += 100; - to_acc.nonce += 1; + let to_acc = nssa_core::account::Account { + program_owner: [ + 1793544791, 852173979, 3315478100, 4158236927, 146723505, 3793635251, 999304864, + 2535706995, + ], + balance: 100, + data: vec![], + nonce: 1, + }; nssa_core::Commitment::new(&to_npk_orig, &to_acc) };