@@ -65,15 +65,15 @@ describe('Miner', () => {
65
65
{ common } ,
66
66
)
67
67
const miner = e . getMiner ( block . header )
68
- const solution = < BlockHeader > await miner . mine ( - 1 )
68
+ const solution = ( await miner . mine ( - 1 ) ) as BlockHeader
69
69
70
70
assert . isTrue (
71
71
await e . verifyPOW ( createBlock ( { header : solution . toJSON ( ) } , { common } ) ) ,
72
72
'successfully mined block' ,
73
73
)
74
74
75
75
const blockMiner = e . getMiner ( block )
76
- const blockSolution = < Block > await blockMiner . mine ( - 1 )
76
+ const blockSolution = ( await blockMiner . mine ( - 1 ) ) as Block
77
77
78
78
assert . isTrue ( await e . verifyPOW ( blockSolution ) )
79
79
} , 60000 )
@@ -129,13 +129,13 @@ describe('Miner', () => {
129
129
)
130
130
131
131
const miner = e . getMiner ( block . header )
132
- const solution = < BlockHeader > await miner . mine ( - 1 )
132
+ const solution = ( await miner . mine ( - 1 ) ) as BlockHeader
133
133
134
134
assert . equal ( solution . common . hardfork ( ) , Hardfork . Petersburg , 'hardfork did not change' )
135
135
assert . equal ( solution . common . chainName ( ) , 'mainnet' , 'chain name did not change' )
136
136
137
137
const blockMiner = e . getMiner ( block )
138
- const blockSolution = < Block > await blockMiner . mine ( - 1 )
138
+ const blockSolution = ( await blockMiner . mine ( - 1 ) ) as Block
139
139
140
140
assert . equal ( blockSolution . common . hardfork ( ) , Hardfork . Petersburg , 'hardfork did not change' )
141
141
assert . equal ( blockSolution . common . chainName ( ) , 'mainnet' , 'chain name did not change' )
0 commit comments