Skip to content

Commit 83afeab

Browse files
committed
evm endpoints
1 parent d812358 commit 83afeab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets_js_bitrequest_fetchblocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ function process_ethereum_transactions(rd, api_data, rdo) {
395395
return
396396
}
397397
const tx_input = api_result.input,
398-
amount_hex = tx_input.slice(74),
399-
token_value = hex_to_number_string(amount_hex),
398+
amount_hex = tx_input ? tx_input.slice(74) : null,
399+
token_value = amount_hex ? hex_to_number_string(amount_hex) : q_obj(api_result.operations[0], "intValue"),
400400
confirmation_count = api_result.confirmations < 0 ? 0 : api_result.confirmations,
401401
tx_data = {
402402
"timestamp": api_result.timestamp,

0 commit comments

Comments
 (0)