mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-26 01:04:20 +01:00
16 lines
293 B
Rust
16 lines
293 B
Rust
tonic::include_proto!("cln");
|
|
|
|
use cln_rpc::primitives::Amount as JAmount;
|
|
|
|
impl From<JAmount> for Amount {
|
|
fn from(a: JAmount) -> Self {
|
|
Amount { msat: a.msat() }
|
|
}
|
|
}
|
|
|
|
impl From<Amount> for JAmount {
|
|
fn from(a: Amount) -> Self {
|
|
JAmount::from_msat(a.msat)
|
|
}
|
|
}
|