Skip to content

Commit 4b79b80

Browse files
committed
Add more functionalities to linera.sol
1 parent db79777 commit 4b79b80

File tree

9 files changed

+708
-178
lines changed

9 files changed

+708
-178
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ lru = "0.12.3"
123123
num-bigint = "0.4.3"
124124
num-format = "0.4.4"
125125
num-traits = "0.2.18"
126-
num_enum = "0.7.3"
127126
octocrab = "0.42.1"
128127
oneshot = "0.1.6"
129128
pathdiff = "0.2.1"

examples/Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

linera-base/src/crypto/hash.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ impl TryFrom<&[u8]> for CryptoHash {
135135
}
136136
}
137137

138+
impl From<CryptoHash> for [u8; 32] {
139+
fn from(crypto_hash: CryptoHash) -> Self {
140+
crypto_hash.0 .0
141+
}
142+
}
143+
138144
impl From<[u64; 4]> for CryptoHash {
139145
fn from(integers: [u64; 4]) -> Self {
140146
CryptoHash(crate::crypto::u64_array_to_be_bytes(integers).into())

linera-execution/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ linera-views.workspace = true
5454
linera-views-derive.workspace = true
5555
linera-witty = { workspace = true, features = ["log", "macros"] }
5656
lru.workspace = true
57-
num_enum.workspace = true
5857
oneshot.workspace = true
5958
prometheus = { workspace = true, optional = true }
6059
proptest = { workspace = true, optional = true }

0 commit comments

Comments
 (0)