Skip to content

Commit 64ba92d

Browse files
committed
'bump'
1 parent 9213002 commit 64ba92d

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dequanto",
3-
"version": "0.1.56",
3+
"version": "0.1.57",
44
"author": {
55
"name": "Alex Kit",
66
"email": "alex.kit@atmajs.com"

src/contracts/ContractCreationResolver.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { BlockchainExplorerFactory } from '@dequanto/explorer/BlockchainExplorer
99
import { $require } from '@dequanto/utils/$require';
1010
import { $promise } from '@dequanto/utils/$promise';
1111
import { TEth } from '@dequanto/models/TEth';
12+
import { $date } from '@dequanto/utils/$date';
1213

1314
export class ContractCreationResolver {
1415

@@ -74,8 +75,8 @@ class BlockchainExplorerDateResolver {
7475
let block = await this.client.getBlock(tx.blockNumber);
7576
return {
7677
tx: tx.hash,
77-
block: tx.blockNumber,
78-
timestamp: $block.getDate(block).valueOf()
78+
block: $require.Number(Number(tx.blockNumber), `Invalid block: ${tx.blockNumber}`),
79+
timestamp: $require.Number(Number(block.timestamp), `Invalid block timestamp: ${block.timestamp}`)
7980
};
8081
}
8182
}

src/explorer/BlockchainExplorerProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export namespace BlockchainExplorerProvider {
2424
return Mix;
2525
}
2626
if (cfg != null) {
27-
return new BlockchainExplorer({ platform });
27+
return new BlockchainExplorer({ platform, ...cfg });
2828
}
2929
throw new Error(`Unsupported platform ${platform} for block chain explorer`);
3030
}

src/indexer/EventsIndexer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ export class EventsIndexer <TContract extends ContractBase> {
105105
TLogName extends GetEventLogNames<TContract>,
106106
> (
107107
event: TLogName | TLogName[] | '*',
108-
// Fetch all logs and filter later if needed
109-
//- params?: T[TMethodName] extends (options: { params?: infer TParams }) => any ? TParams : never,
110108
options?: {
111109
fromBlock?: number
112110
toBlock?: number

0 commit comments

Comments
 (0)