File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
01-node-test-runner-viem/test Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ describe("Counter", async function () {
71
71
} ) ;
72
72
73
73
it ( "The sum of the Increment events should match the current value" , async function ( ) {
74
- const startBlockNumber = await publicClient . getBlockNumber ( ) ;
75
74
const counter = await viem . deployContract ( "Counter" ) ;
75
+ const deploymentBlockNumber = await publicClient . getBlockNumber ( ) ;
76
76
77
77
// run a series of increments
78
78
for ( let i = 1n ; i <= 10n ; i ++ ) {
@@ -83,7 +83,7 @@ describe("Counter", async function () {
83
83
address : counter . address ,
84
84
abi : counter . abi ,
85
85
eventName : "Increment" ,
86
- fromBlock : startBlockNumber ,
86
+ fromBlock : deploymentBlockNumber ,
87
87
strict : true ,
88
88
} ) ;
89
89
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ describe("Counter", function () {
52
52
} ) ;
53
53
54
54
it ( "The sum of the Increment events should match the current value" , async function ( ) {
55
- const startBlockNumber = await ethers . provider . getBlockNumber ( ) ;
56
55
const counter = await ethers . deployContract ( "Counter" ) ;
56
+ const deploymentBlockNumber = await ethers . provider . getBlockNumber ( ) ;
57
57
58
58
// run a series of increments
59
59
for ( let i = 1 ; i <= 10 ; i ++ ) {
@@ -62,7 +62,7 @@ describe("Counter", function () {
62
62
63
63
const events = await counter . queryFilter (
64
64
counter . filters . Increment ( ) ,
65
- startBlockNumber ,
65
+ deploymentBlockNumber ,
66
66
"latest" ,
67
67
) ;
68
68
You can’t perform that action at this time.
0 commit comments