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.
1 parent e0ee544 commit a73c33cCopy full SHA for a73c33c
src/eth.rs
@@ -40,7 +40,21 @@ pub enum EthError {
40
/// Will be serialized and deserialized using `serde_json::to_vec` and `serde_json::from_slice`.
41
#[derive(Debug, Serialize, Deserialize)]
42
pub enum EthSubEvent {
43
- Log(Log),
+ Log(EthLog),
44
+}
45
+
46
+#[derive(Debug, Serialize, Deserialize)]
47
+#[serde(rename_all = "camelCase")]
48
+struct EthLog {
49
+ address: String,
50
+ block_hash: String,
51
+ block_number: String,
52
+ data: String,
53
+ log_index: String,
54
+ removed: bool,
55
+ topics: Vec<String>,
56
+ transaction_hash: String,
57
+ transaction_index: String,
58
}
59
60
#[derive(Debug)]
0 commit comments