Skip to content

Commit fb9c05d

Browse files
committed
chore: update version
1 parent 46522d7 commit fb9c05d

File tree

13 files changed

+1167
-1131
lines changed

13 files changed

+1167
-1131
lines changed

package-lock.json

+69-130
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"homepage": "https://github.com/covalenthq/goldrush-decoder#readme",
2626
"license": "Apache-2.0",
2727
"dependencies": {
28-
"@covalenthq/client-sdk": "^2.1.2",
28+
"@covalenthq/client-sdk": "^2.2.1",
2929
"cors": "^2.8.5",
3030
"dotenv": "^16.3.1",
3131
"enquirer": "^2.4.1",

services/decoder/fallbacks/transfer/transfer.fallback.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { currencyToNumber, timestampParser } from "../../../../utils/functions";
1+
import { currencyToNumber } from "../../../../utils/functions";
22
import { GoldRushDecoder } from "../../decoder";
33
import {
44
DECODED_ACTION,
@@ -7,7 +7,7 @@ import {
77
import { type EventDetails, type EventType } from "../../decoder.types";
88
import { transferERC20ABI } from "./abis/transfer-erc20.abi";
99
import { transferERC721ABI } from "./abis/transfer-erc721.abi";
10-
import { prettifyCurrency } from "@covalenthq/client-sdk";
10+
import { prettifyCurrency, timestampParser } from "@covalenthq/client-sdk";
1111
import { decodeEventLog, type Abi } from "viem";
1212

1313
GoldRushDecoder.fallback(
@@ -86,7 +86,7 @@ GoldRushDecoder.fallback(
8686
details: details,
8787
};
8888

89-
if (decoded.value && sender_address) {
89+
if (decoded.value && sender_address && block_signed_at) {
9090
const date = timestampParser(block_signed_at, "YYYY-MM-DD");
9191
const { data } =
9292
await goldrush_client.PricingService.getTokenPrices(

0 commit comments

Comments
 (0)