File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515 byteArray ,
1616 RpcError ,
1717 ReceiptTx ,
18+ RpcProvider ,
1819} from '../src' ;
1920
2021import { contracts } from './config/fixtures' ;
@@ -26,7 +27,7 @@ describe('contract module', () => {
2627 let provider : ProviderInterface ;
2728 let account : Account ;
2829 const erc20ClassHash = hash . computeContractClassHash ( contracts . Erc20OZ . sierra ) ;
29- const erc20CompiledClassHash = hash . computeCompiledClassHash ( contracts . Erc20OZ . casm ) ;
30+ let erc20CompiledClassHash : string ;
3031 const erc20CallData = new CallData ( contracts . Erc20OZ . sierra . abi ) ;
3132 let erc20Constructor : Calldata ;
3233 let erc20ConstructorParams : RawArgs ;
@@ -44,6 +45,11 @@ describe('contract module', () => {
4445 owner : account . address ,
4546 } ;
4647 erc20Constructor = erc20CallData . compile ( 'constructor' , erc20ConstructorParams ) ;
48+
49+ erc20CompiledClassHash = hash . computeCompiledClassHash (
50+ contracts . Erc20OZ . casm ,
51+ await ( provider as RpcProvider ) . getStarknetVersion ( )
52+ ) ;
4753 } ) ;
4854
4955 describe ( 'class Contract {}' , ( ) => {
You can’t perform that action at this time.
0 commit comments