Lesson 6: Wait X block confirmations in the new HardHat version #5776
              
                
                  
                  
                    Answered
                  
                  by
                    alymurtazamemon
                  
              
          
                  
                    
                      AmCodesLame
                    
                  
                
                  asked this question in
                Q&A
              
            -
| await simpleStorage.deployTransaction.wait(6)This is not a valid function anymore, as ContractFactory deployment is changed in the new version of Hardhat. So what is to be done in the new version? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            alymurtazamemon
          
      
      
        Jul 1, 2023 
      
    
    Replies: 2 comments 5 replies
-
| @AmCodesLame It is now converted to this; await contract.deploymentTransaction().wait(2) | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        AmCodesLame
-
| use: | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
@AmCodesLame It is now converted to this;