diff --git a/README.md b/README.md index 4e64cd9..eb6ccb0 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/macros/evm/evm_live_views.sql b/macros/evm/evm_live_views.sql index daa39d6..680fa2f 100644 --- a/macros/evm/evm_live_views.sql +++ b/macros/evm/evm_live_views.sql @@ -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