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.
MinaTransactionTransactionStableV2
1 parent 99ee4f9 commit 6b4104eCopy full SHA for 6b4104e
mina-p2p-messages/src/v2/hashing.rs
@@ -125,6 +125,22 @@ impl<'de> serde::Deserialize<'de> for TransactionHash {
125
}
126
127
128
+impl generated::MinaTransactionTransactionStableV2 {
129
+ pub fn hash(&self) -> io::Result<TransactionHash> {
130
+ match self {
131
+ Self::Command(v) => v.hash(),
132
+ Self::FeeTransfer(_) => Err(io::Error::new(
133
+ io::ErrorKind::Unsupported,
134
+ "fee transfer tx hashing is not yet supported",
135
+ )),
136
+ Self::Coinbase(_) => Err(io::Error::new(
137
138
+ "coinbase tx hashing is not yet supported",
139
140
+ }
141
142
+}
143
+
144
impl generated::MinaBaseUserCommandStableV2 {
145
pub fn hash(&self) -> io::Result<TransactionHash> {
146
match self {
0 commit comments