I'm encountering an issue while running a script in Foundry. When I try to execute following command. #10438
              
                Unanswered
              
          
                  
                    
                      mirmohmmadluqman
                    
                  
                
                  asked this question in
                Help
              
            Replies: 1 comment
-
| I am also getting error in code
 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    


Uh oh!
There was an error while loading. Please reload this page.
-
Error: contract source info format must be : or when running forge script
Hello, everybody and @PatrickAlphaC,
I'm encountering an issue while running a script in Foundry. When I try to execute the following command:
or
(Anvil is running at 2nd terminal.)
I get the error message:
I believe I'm providing the correct path, but I am unsure about the required format for specifying the contract name.
Could you please advise on the correct way to specify the contract in the command? Should I be adding the contract name after the path with a colon like this:
Or is there another way to fix this error?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions