Skip to content

Commit

Permalink
Fix typo in schema.sql and db_out
Browse files Browse the repository at this point in the history
  • Loading branch information
0237h committed Oct 29, 2024
1 parent 1892ffd commit be85c1d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "evm_contract_creation_tracker"
version = "0.1.1"
version = "0.1.2"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS contract_creation
(
block_hash String,
block_number UInt64,
block_timestamp_seconds Uint64,
block_timestamp_seconds UInt64,
contract_address String,
creator_address String,
creator_tx String,
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn db_out(map: EvmContractCreations) -> Result<DatabaseChanges, Error> {
("", event.block_number.to_string().as_str()),
)
.change(
"block_timestamp",
"block_timestamp_seconds",
("", event.block_timestamp_seconds.to_string().as_str()),
)
.change(
Expand Down Expand Up @@ -104,7 +104,7 @@ pub fn graph_out(map: EvmContractCreations) -> Result<EntityChanges, Error> {
)
.change("block_hash", event.block_hash.to_string())
.change("block_number", event.block_number.to_string())
.change("block_timestamp", event.block_timestamp_seconds.to_string())
.change("block_timestamp_seconds", event.block_timestamp_seconds.to_string())
.change("contract_address", event.contract_address.to_string())
.change("creator_address", event.creator_address.to_string())
.change("creator_tx", event.creator_tx.to_string())
Expand Down
2 changes: 1 addition & 1 deletion substreams.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
specVersion: v0.1.0
package:
name: evm_contract_creation_tracker
version: v0.1.1
version: v0.1.2

imports:
database_change: https://github.com/streamingfast/substreams-sink-database-changes/releases/download/v2.0.0/substreams-database-change-v2.0.0.spkg
Expand Down

0 comments on commit be85c1d

Please sign in to comment.