Fix typo in README.md and update macro in evm_live_views.sql to fix to_latest

This commit is contained in:
Julius Remigio 2024-11-05 08:59:37 -08:00
parent 673a55c1b7
commit 6a9f4c343a
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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