chore: add from u256 impl to JsonU256 (#1673)

This commit is contained in:
Matthias Seitz
2023-03-08 16:11:55 +01:00
committed by GitHub
parent 21c66621dd
commit b449ac06dd

View File

@ -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