Skip to content

Commit 71f051b

Browse files
committed
ran cargo fmt
1 parent 86e4532 commit 71f051b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

wasm/src/account/signature.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,15 @@ impl FromStr for Signature {
218218
mod tests {
219219
use super::*;
220220

221+
use crate::utilities::test::{
222+
plaintext::{INVALID_NESTED_STRUCT, NESTED_STRUCT},
223+
records::{CREDITS_RECORD, INVALID_CREDITS_RECORD},
224+
};
221225
use rand::{Rng, SeedableRng, rngs::StdRng};
222226
use wasm_bindgen_test::*;
223-
use crate::utilities::test::records::{CREDITS_RECORD, INVALID_CREDITS_RECORD};
224-
use crate::utilities::test::plaintext::{NESTED_STRUCT, INVALID_NESTED_STRUCT};
225227

226228
const ITERATIONS: u64 = 1_000;
227-
229+
228230
#[wasm_bindgen_test]
229231
pub fn test_sign_and_verify() {
230232
for _ in 0..ITERATIONS {

wasm/src/utilities/test/plaintext.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pub const TEST_STRUCT: &str = "{
3434
pub const NESTED_STRUCT: &str = "{ player: aleo13nnjqa7h2u4mpl95guz97nhzkhlde750zsjnw59tkgdwc85lyurs295lxc, health: 100u8, inventory: { coins: 5u32, snacks: { candies: 5u64, vegetals: 6u64 } }, secret: 2group, cipher: 2scalar, is_alive: true }";
3535
pub const INVALID_NESTED_STRUCT: &str = "{ player: aleo13nnjqa7h2u4mpl95guz97nhzkhlde750zsjnw59tkgdwc85lyurs295lxc, health: 100u8, inventory: { coins: 5u32, snacks: { candies: 5u64, vegetals: 6u64 } }, secret: 2group, cipher: 2scalar, is_alive: false }";
3636

37-
3837
/// Create a field element and a scalar element.
3938
pub fn create_native_field_vector(num_fields: Option<u16>) -> Vec<FieldNative> {
4039
// Create a field element generator.

wasm/src/utilities/test/records.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// You should have received a copy of the GNU General Public License
1515
// along with the Provable SDK library. If not, see <https://www.gnu.org/licenses/>.
16-
16+
1717
pub const CREDITS_RECORD: &str = r"{
1818
owner: aleo1j7qxyunfldj2lp8hsvy7mw5k8zaqgjfyr72x2gh3x4ewgae8v5gscf5jh3.private,
1919
microcredits: 1500000000000000u64.private,
@@ -25,4 +25,4 @@ pub const INVALID_CREDITS_RECORD: &str = r"{
2525
microcredits: 1400000000000000u64.private,
2626
_nonce: 3077450429259593211617823051143573281856129402760267155982965992208217472983group.public,
2727
_version: 0u8.public
28-
}";
28+
}";

0 commit comments

Comments
 (0)