mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
Fix typo in README.md and update macro in evm_live_views.sql to fix to_latest
This commit is contained in:
parent
673a55c1b7
commit
6a9f4c343a
@ -469,7 +469,7 @@ When False, none of the on-run-start macros are executed on model run
|
||||
Default values are False
|
||||
|
||||
* Usage:
|
||||
`dbt run --var '{"UPDATE_UDFS_AND_SPS":True}' -m ...`
|
||||
`dbt run --vars` '{"UPDATE_UDFS_AND_SPS":True}' -m ...`
|
||||
|
||||
Dropping and creating udfs can also be done without running a model:
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{% macro evm_live_view_latest_block_height(schema, blockchain, network) %}
|
||||
SELECT
|
||||
{{ schema }}.udf_rpc('eth_blockNumber', []) as result,
|
||||
utils.udf_hex_to_int(result:result)::integer AS latest_block_height,
|
||||
utils.udf_hex_to_int(result)::integer AS latest_block_height,
|
||||
COALESCE(
|
||||
block_height,
|
||||
latest_block_height
|
||||
|
||||
Loading…
Reference in New Issue
Block a user