Skip to content

Commit

Permalink
refactor: re-export Felt from starknet-crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Jun 16, 2024
1 parent 717ce51 commit c5f3b7e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion examples/starknet-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ default = ["console_error_panic_hook"]
starknet-crypto = { version = "0.6.2", path = "../../starknet-crypto" }
console_error_panic_hook = { version = "0.1.7", optional = true }
wasm-bindgen = "0.2.84"
starknet-types-core = { version = "0.1.1", default-features = false, features = ["curve"] }
2 changes: 1 addition & 1 deletion examples/starknet-wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::unused_unit)]

use starknet_types_core::felt::Felt;
use starknet_crypto::Felt;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
Expand Down
2 changes: 2 additions & 0 deletions starknet-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ mod rfc6979;
#[cfg(test)]
mod test_utils;

pub use starknet_types_core::felt::Felt;

pub use pedersen_hash::pedersen_hash;

pub use poseidon_hash::{
Expand Down

0 comments on commit c5f3b7e

Please sign in to comment.