We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Felt
1 parent d9593ab commit 3a9c18dCopy full SHA for 3a9c18d
chain/starknet/src/felt.rs
@@ -6,14 +6,16 @@ use std::{
6
use graph::anyhow;
7
use serde::{de::Visitor, Deserialize};
8
9
+/// Represents the primitive `FieldElement` type used in Starknet. Each `FieldElement` is 252-bit
10
+/// in size.
11
#[derive(Clone, PartialEq, Eq)]
12
pub struct Felt([u8; 32]);
13
14
struct FeltVisitor;
15
16
impl Debug for Felt {
17
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
- write!(f, "0x{}", hex::encode(&self.0))
18
+ write!(f, "0x{}", hex::encode(self.0))
19
}
20
21
0 commit comments