@@ -146,11 +146,8 @@ describe('defaultProvider', () => {
146146 expect ( latestBlock ) . toHaveProperty ( 'parent_hash' ) ;
147147 expect ( latestBlock ) . toHaveProperty ( 'block_number' ) ;
148148 expect ( latestBlock ) . toHaveProperty ( 'status' ) ;
149- expect ( latestBlock ) . toHaveProperty ( 'sequencer' ) ;
150149 expect ( latestBlock ) . toHaveProperty ( 'new_root' ) ;
151- expect ( latestBlock ) . toHaveProperty ( 'old_root' ) ;
152- expect ( latestBlock ) . toHaveProperty ( 'accepted_time' ) ;
153- expect ( latestBlock ) . toHaveProperty ( 'gas_price' ) ;
150+ expect ( latestBlock ) . toHaveProperty ( 'timestamp' ) ;
154151 expect ( latestBlock ) . toHaveProperty ( 'transactions' ) ;
155152 expect ( Array . isArray ( latestBlock . transactions ) ) . toBe ( true ) ;
156153 } ) ;
@@ -164,11 +161,8 @@ describe('defaultProvider', () => {
164161 expect ( block ) . toHaveProperty ( 'parent_hash' ) ;
165162 expect ( block ) . toHaveProperty ( 'block_number' ) ;
166163 expect ( block ) . toHaveProperty ( 'status' ) ;
167- expect ( block ) . toHaveProperty ( 'sequencer' ) ;
168164 expect ( block ) . toHaveProperty ( 'new_root' ) ;
169- expect ( block ) . toHaveProperty ( 'old_root' ) ;
170- expect ( block ) . toHaveProperty ( 'accepted_time' ) ;
171- expect ( block ) . toHaveProperty ( 'gas_price' ) ;
165+ expect ( block ) . toHaveProperty ( 'timestamp' ) ;
172166 expect ( block ) . toHaveProperty ( 'transactions' ) ;
173167 expect ( Array . isArray ( block . transactions ) ) . toBe ( true ) ;
174168 } ) ;
@@ -179,11 +173,8 @@ describe('defaultProvider', () => {
179173 expect ( block ) . toHaveProperty ( 'parent_hash' ) ;
180174 expect ( block ) . toHaveProperty ( 'block_number' ) ;
181175 expect ( block ) . toHaveProperty ( 'status' ) ;
182- expect ( block ) . toHaveProperty ( 'sequencer' ) ;
183176 expect ( block ) . toHaveProperty ( 'new_root' ) ;
184- expect ( block ) . toHaveProperty ( 'old_root' ) ;
185- expect ( block ) . toHaveProperty ( 'accepted_time' ) ;
186- expect ( block ) . toHaveProperty ( 'gas_price' ) ;
177+ expect ( block ) . toHaveProperty ( 'timestamp' ) ;
187178 expect ( block ) . toHaveProperty ( 'transactions' ) ;
188179 expect ( Array . isArray ( block . transactions ) ) . toBe ( true ) ;
189180 } ) ;
@@ -193,15 +184,15 @@ describe('defaultProvider', () => {
193184 test ( 'pending' , async ( ) => {
194185 const storage = await provider . getStorageAt (
195186 '0x01d1f307c073bb786a66e6e042ec2a9bdc385a3373bb3738d95b966d5ce56166' ,
196- 0
187+ '0'
197188 ) ;
198189 expect ( typeof storage ) . toBe ( 'string' ) ;
199190 } ) ;
200191
201192 test ( 'Block Hash 0x7104702055c2a5773a870ceada9552ec659d69c18053b14078983f07527dea8' , async ( ) => {
202193 const storage = await provider . getStorageAt (
203194 '0x01d1f307c073bb786a66e6e042ec2a9bdc385a3373bb3738d95b966d5ce56166' ,
204- 0 ,
195+ '0' ,
205196 '0x7225762c7ff5e7e5f0867f0a8e73594df4f44f05a65375339a76398e8ae3e64'
206197 ) ;
207198 expect ( typeof storage ) . toBe ( 'string' ) ;
@@ -239,7 +230,6 @@ describe('defaultProvider', () => {
239230 expect ( transaction . max_fee ) . toBeTruthy ( ) ;
240231 expect ( transaction . transaction_hash ) . toBeTruthy ( ) ;
241232 expect ( transaction ) . toHaveProperty ( 'nonce' ) ;
242- expect ( transaction ) . toHaveProperty ( 'sender_address' ) ;
243233 expect ( transaction ) . toHaveProperty ( 'version' ) ;
244234 } ) ;
245235 } ) ;
@@ -260,13 +250,13 @@ describe('defaultProvider', () => {
260250 } ) ;
261251
262252 describe ( 'Contract methods' , ( ) => {
263- let contractAddress : string ;
253+ // let contractAddress: string;
264254 let deployResponse : DeployContractResponse ;
265255 let declareResponse : DeclareContractResponse ;
266256
267257 beforeAll ( async ( ) => {
268258 deployResponse = await provider . deployContract ( { contract : compiledErc20 } ) ;
269- contractAddress = deployResponse . contract_address ;
259+ // contractAddress = deployResponse.contract_address;
270260 declareResponse = await provider . declareContract ( { contract : compiledErc20 } ) ;
271261 await Promise . all ( [
272262 provider . waitForTransaction ( deployResponse . transaction_hash ) ,
@@ -290,7 +280,10 @@ describe('defaultProvider', () => {
290280
291281 describe ( 'getClassAt' , ( ) => {
292282 test ( 'response' , async ( ) => {
293- const classResponse = await provider . getClassAt ( contractAddress ) ;
283+ const classResponse = await provider . getClassAt (
284+ '0x075c4CEe7e88010008c1aA8777D798073D5Db63B685A033140cE5AF144EA0283' ,
285+ '0x673c337dd17b50628e7b2a070e2c599a4fed54a2e7c1ff10e84115325c5b37e'
286+ ) ;
294287
295288 expect ( classResponse ) . toHaveProperty ( 'program' ) ;
296289 expect ( classResponse ) . toHaveProperty ( 'entry_points_by_type' ) ;
0 commit comments