mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Add a convert_payload function to Signed (#2320)
* Add a `convert_payload` function to `Signed` * Review feedback
This commit is contained in:
@@ -85,6 +85,12 @@ impl Statement {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&'_ Statement> for CompactStatement {
|
||||
fn from(stmt: &Statement) -> Self {
|
||||
stmt.to_compact()
|
||||
}
|
||||
}
|
||||
|
||||
impl EncodeAs<CompactStatement> for Statement {
|
||||
fn encode_as(&self) -> Vec<u8> {
|
||||
self.to_compact().encode()
|
||||
|
||||
Reference in New Issue
Block a user