Skip to content

Commit

Permalink
add custom params
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Feb 9, 2023
1 parent 4554ad2 commit f7fba6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions params/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ use substreams::pb::substreams::Clock;
#[substreams::handlers::map]
pub fn map_params(params: String, clock: Clock) -> Result<Clock, Error> {
log::debug!("map_params: {:?}", params);
log::debug!("2nd log map_params: {:?}", params);
Ok(clock)
}
5 changes: 2 additions & 3 deletions params/substreams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ modules:
kind: map
inputs:
- params: string
default: "foo"
- source: sf.substreams.v1.Clock
output:
type: proto:sf.substreams.v1.Clock

# params:
# map_params: "πŸŽ‰ custom params πŸŽ‰"
params:
map_params: "πŸŽ‰ custom params πŸŽ‰"

0 comments on commit f7fba6f

Please sign in to comment.