@@ -65,15 +65,15 @@ describe('Miner', () => {
6565 { common } ,
6666 )
6767 const miner = e . getMiner ( block . header )
68- const solution = < BlockHeader > await miner . mine ( - 1 )
68+ const solution = ( await miner . mine ( - 1 ) ) as BlockHeader
6969
7070 assert . isTrue (
7171 await e . verifyPOW ( createBlock ( { header : solution . toJSON ( ) } , { common } ) ) ,
7272 'successfully mined block' ,
7373 )
7474
7575 const blockMiner = e . getMiner ( block )
76- const blockSolution = < Block > await blockMiner . mine ( - 1 )
76+ const blockSolution = ( await blockMiner . mine ( - 1 ) ) as Block
7777
7878 assert . isTrue ( await e . verifyPOW ( blockSolution ) )
7979 } , 60000 )
@@ -129,13 +129,13 @@ describe('Miner', () => {
129129 )
130130
131131 const miner = e . getMiner ( block . header )
132- const solution = < BlockHeader > await miner . mine ( - 1 )
132+ const solution = ( await miner . mine ( - 1 ) ) as BlockHeader
133133
134134 assert . equal ( solution . common . hardfork ( ) , Hardfork . Petersburg , 'hardfork did not change' )
135135 assert . equal ( solution . common . chainName ( ) , 'mainnet' , 'chain name did not change' )
136136
137137 const blockMiner = e . getMiner ( block )
138- const blockSolution = < Block > await blockMiner . mine ( - 1 )
138+ const blockSolution = ( await blockMiner . mine ( - 1 ) ) as Block
139139
140140 assert . equal ( blockSolution . common . hardfork ( ) , Hardfork . Petersburg , 'hardfork did not change' )
141141 assert . equal ( blockSolution . common . chainName ( ) , 'mainnet' , 'chain name did not change' )
0 commit comments