Skip to content

Commit 5b01b55

Browse files
committed
'bump'
1 parent 937e6b5 commit 5b01b55

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
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.54",
3+
"version": "0.1.55",
44
"author": {
55
"name": "Alex Kit",
66
"email": "alex.kit@atmajs.com"

test/client/block.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Web3ClientFactory } from '@dequanto/clients/Web3ClientFactory';
22
import { BlockDateResolver } from '@dequanto/blocks/BlockDateResolver';
3-
import { $date } from '@dequanto/utils/$date';
43

54
UTest({
65
$config: {
@@ -13,7 +12,9 @@ UTest({
1312
let client = await Web3ClientFactory.getAsync('eth');
1413
let block = new BlockDateResolver(client);
1514
let nr = await block.getBlockNumberFor(new Date('2024-03-03T10:20:00Z'));
16-
eq_(nr, 19354006);
15+
// As binary search is used to fetch a block for a given time, check aproximately 3 blocks difference
16+
let diff = Math.abs(nr - 19354006);
17+
lt_(diff, 3);
1718
},
1819

1920
})

test/hardhat/deployments/deployments.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default UTest({
106106
//
107107
eq_(await File.existsAsync(deploymentsProxyOutput), false);
108108
},
109-
async ']verify' () {
109+
async 'verify' () {
110110
class HtmlVerifier extends FsHtmlVerifier {
111111
constructor () {
112112
super('polygon', {
@@ -122,6 +122,9 @@ export default UTest({
122122

123123
let CtorData = await hh.getContractFromSolPath(paths.DeploymentsFoo)
124124
console.log(`CtorData`, CtorData);
125+
126+
has_(CtorData.output, 'DeploymentsFoo.sol/DeploymentsFoo.json');
127+
eq_(CtorData.source.contractName, 'DeploymentsFoo');
125128
},
126129
async 'with proxy' () {
127130
return UTest({

0 commit comments

Comments
 (0)