mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
fix: swanitem revert try
This commit is contained in:
parent
0d68bec358
commit
476d5a9b14
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -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
|
||||
@ -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)
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user