Skip to content

Commit 0712fe9

Browse files
committed
graph: Fix Ethereum Block handler from string and write to store
1 parent 70f7803 commit 0712fe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graph/src/data/subgraph/schema.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ impl WriteOperations for EthereumBlockHandlerEntity {
10261026
if let Some(filter_id) = filter_id {
10271027
entity.set("filter", filter_id);
10281028
}
1029-
entity.set("data", String::from(self.input));
1029+
entity.set("input", String::from(self.input));
10301030
ops.add(Self::TYPENAME, id.to_owned(), entity);
10311031
}
10321032
}
@@ -1128,6 +1128,7 @@ impl FromStr for EthereumBlockHandlerData {
11281128

11291129
fn from_str(s: &str) -> Result<EthereumBlockHandlerData, Error> {
11301130
match s {
1131+
"FullBlockWithReceipts" => Ok(EthereumBlockHandlerData::FullBlockWithReceipts),
11311132
"FullBlock" => Ok(EthereumBlockHandlerData::FullBlock),
11321133
"Block" => Ok(EthereumBlockHandlerData::Block),
11331134
_ => Err(format_err!(

0 commit comments

Comments
 (0)