mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add from u256 impl to JsonU256 (#1673)
This commit is contained in:
@ -15,6 +15,12 @@ impl From<JsonU256> for U256 {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<U256> for JsonU256 {
|
||||
fn from(value: U256) -> Self {
|
||||
JsonU256(value)
|
||||
}
|
||||
}
|
||||
|
||||
impl Serialize for JsonU256 {
|
||||
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user