Skip to content

Commit

Permalink
graph: Bump default max API version to 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Mar 21, 2022
1 parent bfa472b commit 6149468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graph/src/data/subgraph/api_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub const API_VERSION_0_0_2: Version = Version::new(0, 0, 2);
/// different API versions if at least one of them is equal to or higher than `0.0.5`.
pub const API_VERSION_0_0_5: Version = Version::new(0, 0, 5);

// Adds two new fields to the Transaction object: nonce and input
pub const API_VERSION_0_0_6: Version = Version::new(0, 0, 6);

/// Enables event handlers to require transaction receipts in the runtime.
Expand All @@ -35,7 +36,7 @@ lazy_static! {
pub static ref MAX_API_VERSION: semver::Version = std::env::var("GRAPH_MAX_API_VERSION")
.ok()
.and_then(|api_version_str| semver::Version::parse(&api_version_str).ok())
.unwrap_or(semver::Version::new(0, 0, 6));
.unwrap_or(API_VERSION_0_0_7);
}

#[derive(Clone, PartialEq, Debug)]
Expand Down

0 comments on commit 6149468

Please sign in to comment.