Skip to content

Commit be3c6ce

Browse files
committed
fixed record.rs module
1 parent a5e1b4a commit be3c6ce

File tree

4 files changed

+19
-31
lines changed

4 files changed

+19
-31
lines changed

wasm/src/account/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ mod tests {
220220

221221
use crate::utilities::test::{
222222
plaintext::{INVALID_NESTED_STRUCT, NESTED_STRUCT},
223-
records::{CREDITS_RECORD, INVALID_CREDITS_RECORD},
223+
record::{CREDITS_RECORD, INVALID_CREDITS_RECORD},
224224
};
225225
use rand::{Rng, SeedableRng, rngs::StdRng};
226226
use wasm_bindgen_test::*;

wasm/src/utilities/test/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ pub use plaintext::*;
2323
pub mod programs;
2424
pub use programs::*;
2525

26-
pub mod records;
27-
pub use records::*;
26+
pub mod record;
27+
pub use record::*;
2828

2929
pub mod uri;
3030
pub use uri::*;

wasm/src/utilities/test/record.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,19 @@ pub const TOKEN_REGISTRY_RECORD_V1: &str = r#"{
3838
_nonce: 353510505137682717871934563523691055502582931368477380633253282125012046603group.public,
3939
_version: 1u8.public
4040
}"#;
41+
42+
/// Valid credits.aleo record for testing.
43+
pub const CREDITS_RECORD: &str = r"{
44+
owner: aleo1j7qxyunfldj2lp8hsvy7mw5k8zaqgjfyr72x2gh3x4ewgae8v5gscf5jh3.private,
45+
microcredits: 1500000000000000u64.private,
46+
_nonce: 3077450429259593211617823051143573281856129402760267155982965992208217472983group.public,
47+
_version: 0u8.public
48+
}";
49+
50+
/// Invalid credits.aleo record for testing.
51+
pub const INVALID_CREDITS_RECORD: &str = r"{
52+
owner: aleo1j7qxyunfldj2lp8hsvy7mw5k8zaqgjfyr72x2gh3x4ewgae8v5gscf5jh3.private,
53+
microcredits: 1400000000000000u64.private,
54+
_nonce: 3077450429259593211617823051143573281856129402760267155982965992208217472983group.public,
55+
_version: 0u8.public
56+
}";

wasm/src/utilities/test/records.rs

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)