File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dequanto" ,
3
- "version" : " 0.1.54 " ,
3
+ "version" : " 0.1.55 " ,
4
4
"author" : {
5
5
"name" : " Alex Kit" ,
6
6
"email" : " alex.kit@atmajs.com"
Original file line number Diff line number Diff line change 1
1
import { Web3ClientFactory } from '@dequanto/clients/Web3ClientFactory' ;
2
2
import { BlockDateResolver } from '@dequanto/blocks/BlockDateResolver' ;
3
- import { $date } from '@dequanto/utils/$date' ;
4
3
5
4
UTest ( {
6
5
$config : {
@@ -13,7 +12,9 @@ UTest({
13
12
let client = await Web3ClientFactory . getAsync ( 'eth' ) ;
14
13
let block = new BlockDateResolver ( client ) ;
15
14
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 ) ;
17
18
} ,
18
19
19
20
} )
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default UTest({
106
106
//
107
107
eq_ ( await File . existsAsync ( deploymentsProxyOutput ) , false ) ;
108
108
} ,
109
- async '] verify' ( ) {
109
+ async 'verify' ( ) {
110
110
class HtmlVerifier extends FsHtmlVerifier {
111
111
constructor ( ) {
112
112
super ( 'polygon' , {
@@ -122,6 +122,9 @@ export default UTest({
122
122
123
123
let CtorData = await hh . getContractFromSolPath ( paths . DeploymentsFoo )
124
124
console . log ( `CtorData` , CtorData ) ;
125
+
126
+ has_ ( CtorData . output , 'DeploymentsFoo.sol/DeploymentsFoo.json' ) ;
127
+ eq_ ( CtorData . source . contractName , 'DeploymentsFoo' ) ;
125
128
} ,
126
129
async 'with proxy' ( ) {
127
130
return UTest ( {
You can’t perform that action at this time.
0 commit comments